Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 199.7 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.158/1.158, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008621/0.0008622, allocations: 95.06 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09271/0.0936, allocations: 56.9 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.1782, allocations: 51.47 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2085/0.3868, allocations: 82.51 MB / 477.2 MB, free: 10.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001627/0.387, allocations: 71.36 kB / 477.3 MB, free: 10.12 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.02475/0.4117, allocations: 10.67 MB / 488 MB, free: 1.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.4118, allocations: 8 kB / 488 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.412, allocations: 63.42 kB / 488 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003546/0.4123, allocations: 316.5 kB / 488.3 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.4124, allocations: 19.94 kB / 488.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.53e-05/0.4125, allocations: 24 kB / 488.4 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006232/0.4131, allocations: 392 kB / 488.8 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.4136, allocations: 379.6 kB / 489.1 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.4137, allocations: 11.88 kB / 489.1 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.4137, allocations: 0 / 489.1 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.467e-06/0.4137, allocations: 12 kB / 489.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.4157, allocations: 1.11 MB / 490.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005639/0.4163, allocations: 265.8 kB / 490.5 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003942/0.4167, allocations: 226.8 kB / 490.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.626e-05/0.4167, allocations: 16.47 kB / 490.8 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.4168, allocations: 41.94 kB / 490.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=55): time 1.653e-06/0.4168, allocations: 0 / 490.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.00273/0.4195, allocations: 1.506 MB / 492.3 MB, free: 14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.4196, allocations: 59.91 kB / 492.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.4198, allocations: 237.8 kB / 492.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.558e-05/0.4199, allocations: 33.39 kB / 492.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.995e-05/0.42, allocations: 159.4 kB / 492.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4201, allocations: 198.7 kB / 493 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.4202, allocations: 4 kB / 493 MB, free: 13.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.4203, allocations: 354.5 kB / 493.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.4207, allocations: 190.1 kB / 493.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003614/0.421, allocations: 231.7 kB / 493.7 MB, free: 12.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.4213, allocations: 150 kB / 493.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.4213, allocations: 0 / 493.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001087/0.4224, allocations: 0.6088 MB / 494.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.4224, allocations: 6.031 kB / 494.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.4224, allocations: 3.938 kB / 494.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007277/0.4232, allocations: 312.2 kB / 494.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/0.4235, allocations: 91.2 kB / 494.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.4249, allocations: 1.422 MB / 496.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005379/0.4254, allocations: 104 kB / 496.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.218e-05/0.4255, allocations: 15.12 kB / 496.4 MB, free: 10.5 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.4257, allocations: 123.2 kB / 496.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.25e-05/0.4258, allocations: 51.41 kB / 496.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.4259, allocations: 47.52 kB / 496.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.4259, allocations: 4 kB / 496.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4259, allocations: 7.984 kB / 496.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.4259, allocations: 0 / 496.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.4282, allocations: 1.319 MB / 498 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4283, allocations: 0 / 498 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.4287, allocations: 92.52 kB / 498.1 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006174/0.4293, allocations: 285.2 kB / 498.4 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/0.4294, allocations: 18.67 kB / 498.4 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.4305, allocations: 1.382 MB / 499.8 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4306, allocations: 4.031 kB / 499.8 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001557/0.4321, allocations: 0.9875 MB / 0.489 GB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002674/0.4348, allocations: 2.118 MB / 0.4911 GB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.435, allocations: 168.3 kB / 0.4912 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.4352, allocations: 15.42 kB / 0.4913 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004808/0.4356, allocations: 79.94 kB / 0.4913 GB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/0.4359, allocations: 113.3 kB / 0.4914 GB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/0.4359, allocations: 26.66 kB / 0.4915 GB, free: 4.887 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000168/0.4361, allocations: 186.1 kB / 0.4916 GB, free: 4.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001038/0.4372, allocations: 118.7 kB / 0.4918 GB, free: 4.625 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006298/0.4378, allocations: 303.8 kB / 0.492 GB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008877/0.4387, allocations: 0.5017 MB / 0.4925 GB, free: 4.102 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4387, allocations: 0 / 0.4925 GB, free: 4.102 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005581/0.4393, allocations: 289.4 kB / 0.4928 GB, free: 3.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004821/0.4398, allocations: 63 kB / 0.4929 GB, free: 3.859 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.4418, allocations: 0.9847 MB / 0.4938 GB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005234/0.4423, allocations: 0.8931 MB / 0.4947 GB, free: 2.016 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4423, allocations: 0 / 0.4947 GB, free: 2.016 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat