Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",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 3.2.3+maint.om/package.mo): time 0.002644/0.002644, allocations: 189.5 kB / 7.847 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.19/2.19, allocations: 205.2 MB / 213.5 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001342/0.001342, allocations: 102.3 kB / 261.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1236/0.1236, allocations: 12.59 MB / 322 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2775/0.4012, allocations: 56.48 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.5027, allocations: 50.38 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.324/0.8267, allocations: 80.14 MB / 0.4971 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.8271, allocations: 69.36 kB / 0.4971 GB, free: 11.87 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.02758/0.8547, allocations: 5.767 MB / 0.5028 GB, free: 10.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.8547, allocations: 11.31 kB / 0.5028 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.8549, allocations: 30.88 kB / 0.5028 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.8553, allocations: 251.7 kB / 0.5031 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003053/0.8556, allocations: 139 kB / 0.5032 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.082e-05/0.8557, allocations: 11.53 kB / 0.5032 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001055/0.8568, allocations: 376.8 kB / 0.5036 GB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006673/0.8575, allocations: 276.8 kB / 0.5038 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.8575, allocations: 11.89 kB / 0.5038 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.268e-05/0.8576, allocations: 0 / 0.5038 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.8576, allocations: 7.656 kB / 0.5038 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002856/0.8605, allocations: 0.9821 MB / 0.5048 GB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.8611, allocations: 187 kB / 0.505 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.8615, allocations: 126.4 kB / 0.5051 GB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.541e-05/0.8615, allocations: 11.75 kB / 0.5051 GB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.8616, allocations: 33.56 kB / 0.5051 GB, free: 9.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.547e-06/0.8616, allocations: 0 / 0.5051 GB, free: 9.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.0152/0.8768, allocations: 3.009 MB / 0.5081 GB, free: 8.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.8769, allocations: 59.97 kB / 0.5081 GB, free: 8.613 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.8772, allocations: 184.7 kB / 0.5083 GB, free: 8.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.43e-05/0.8773, allocations: 27.17 kB / 0.5083 GB, free: 8.469 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.899e-05/0.8774, allocations: 142.2 kB / 0.5085 GB, free: 8.344 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.8776, allocations: 171.6 kB / 0.5086 GB, free: 8.215 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.33e-05/0.8777, allocations: 4 kB / 0.5086 GB, free: 8.211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.927e-05/0.8778, allocations: 335.5 kB / 0.509 GB, free: 7.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.8791, allocations: 318.1 kB / 0.5093 GB, free: 7.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.8808, allocations: 376.1 kB / 0.5096 GB, free: 7.828 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.8821, allocations: 253.2 kB / 0.5099 GB, free: 7.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.8821, allocations: 1 kB / 0.5099 GB, free: 7.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003847/0.886, allocations: 0.6908 MB / 0.5105 GB, free: 7.695 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.8861, allocations: 7.812 kB / 0.5105 GB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.8861, allocations: 1.969 kB / 0.5105 GB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.952e-05/0.8862, allocations: 4.406 kB / 0.5106 GB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003317/0.8895, allocations: 194.5 kB / 0.5107 GB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.431e-05/0.8896, allocations: 6.234 kB / 0.5107 GB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/0.8918, allocations: 102.7 kB / 0.5108 GB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002322/0.8921, allocations: 20.62 kB / 0.5109 GB, free: 7.602 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003006/0.8925, allocations: 111.2 kB / 0.511 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.8926, allocations: 28.59 kB / 0.511 GB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/0.8928, allocations: 35.73 kB / 0.511 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.8928, allocations: 5.688 kB / 0.511 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.8928, allocations: 0 / 0.511 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.8929, allocations: 5.078 kB / 0.511 GB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005482/0.8983, allocations: 1.629 MB / 0.5126 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.8984, allocations: 8.875 kB / 0.5126 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/0.8999, allocations: 174.7 kB / 0.5128 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.185e-05/0.8999, allocations: 12.56 kB / 0.5128 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.9001, allocations: 14.16 kB / 0.5128 GB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.838e-05/0.9001, allocations: 18.81 kB / 0.5128 GB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.501e-05/0.9001, allocations: 14.34 kB / 0.5129 GB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002111/0.9023, allocations: 1.299 MB / 0.5141 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002825/0.9051, allocations: 1.892 MB / 0.516 GB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003249/0.9055, allocations: 152.6 kB / 0.5161 GB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.9056, allocations: 11.19 kB / 0.5161 GB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.9068, allocations: 94.25 kB / 0.5162 GB, free: 3.766 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/0.9071, allocations: 88.61 kB / 0.5163 GB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/0.9072, allocations: 22.34 kB / 0.5163 GB, free: 3.723 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001982/0.9074, allocations: 137.6 kB / 0.5165 GB, free: 3.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001696/0.9091, allocations: 84.5 kB / 0.5165 GB, free: 3.637 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002766/0.9094, allocations: 123 kB / 0.5167 GB, free: 3.531 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.9112, allocations: 0.5862 MB / 0.5172 GB, free: 3.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/0.9112, allocations: 5.5 kB / 0.5172 GB, free: 3.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008162/0.912, allocations: 207.8 kB / 0.5174 GB, free: 3.461 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007235/0.9128, allocations: 52.19 kB / 0.5175 GB, free: 3.445 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003047/0.9158, allocations: 0.8203 MB / 0.5183 GB, free: 2.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009216/0.9168, allocations: 0.8325 MB / 0.5191 GB, free: 2.086 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.9168, allocations: 1.375 kB / 0.5191 GB, free: 2.086 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat