Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_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 trunk/package.mo): time 0.001166/0.001166, allocations: 208.7 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009264/0.0009264, allocations: 94.66 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1053/0.1063, allocations: 56.89 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.194, allocations: 51.47 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2455/0.4395, allocations: 77.57 MB / 472.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001608/0.4396, allocations: 71.81 kB / 472.3 MB, free: 13.89 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.005725/0.4454, allocations: 2.341 MB / 474.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.4454, allocations: 8 kB / 474.7 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.548e-05/0.4455, allocations: 11.81 kB / 474.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.4456, allocations: 196.6 kB / 474.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-06/0.4456, allocations: 4 kB / 474.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.4457, allocations: 8 kB / 474.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001063/0.4458, allocations: 44.75 kB / 474.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.4459, allocations: 87.33 kB / 475 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.4459, allocations: 11.36 kB / 475 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4459, allocations: 0 / 475 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.446, allocations: 4 kB / 475 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000538/0.4465, allocations: 0.5038 MB / 475.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.806e-05/0.4466, allocations: 39.97 kB / 475.6 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.004e-05/0.4466, allocations: 30.73 kB / 475.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.4466, allocations: 2.766 kB / 475.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.303e-05/0.4467, allocations: 30.56 kB / 475.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.173e-06/0.4467, allocations: 0 / 475.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001574/0.4468, allocations: 67.58 kB / 475.7 MB, free: 11.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.509e-05/0.4469, allocations: 58.91 kB / 475.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.582e-05/0.4469, allocations: 111.3 kB / 475.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.037e-06/0.4469, allocations: 28.98 kB / 475.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.941e-05/0.447, allocations: 115.3 kB / 476 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.447, allocations: 22.75 kB / 476 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.618e-06/0.447, allocations: 0 / 476 MB, free: 11.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.9e-05/0.447, allocations: 325.4 kB / 476.4 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.475e-05/0.4471, allocations: 19.44 kB / 476.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.202e-05/0.4471, allocations: 48.91 kB / 476.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.29e-05/0.4472, allocations: 26.22 kB / 476.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.4472, allocations: 3.938 kB / 476.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000131/0.4473, allocations: 97.72 kB / 476.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.4473, allocations: 4 kB / 476.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.4473, allocations: 0 / 476.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.4474, allocations: 6.312 kB / 476.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.4475, allocations: 44.84 kB / 476.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.4476, allocations: 3.422 kB / 476.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.417e-05/0.4476, allocations: 11.91 kB / 476.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.4477, allocations: 4 kB / 476.6 MB, free: 10.59 MB / 346.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 4.242e-05/0.4477, allocations: 109 kB / 476.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.4477, allocations: 7.234 kB / 476.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.118e-05/0.4478, allocations: 11.75 kB / 476.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.4478, allocations: 0 / 476.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4478, allocations: 3.906 kB / 476.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.4478, allocations: 3.938 kB / 476.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.4479, allocations: 172.6 kB / 476.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.448, allocations: 0 / 476.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.4481, allocations: 30.42 kB / 477 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.4481, allocations: 4 kB / 477 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.4481, allocations: 0 / 477 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4481, allocations: 3.906 kB / 477 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4482, allocations: 0 / 477 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001596/0.4483, allocations: 191 kB / 477.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002216/0.4485, allocations: 0.5889 MB / 477.7 MB, free: 9.504 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.643e-05/0.4486, allocations: 90.5 kB / 477.8 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.4486, allocations: 0 / 477.8 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.4487, allocations: 11.38 kB / 477.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.351e-05/0.4488, allocations: 192 / 477.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.4488, allocations: 4 kB / 477.8 MB, free: 9.391 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.191e-05/0.4488, allocations: 100.2 kB / 477.9 MB, free: 9.305 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008161/0.4496, allocations: 23.91 kB / 478 MB, free: 9.281 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 9.345e-05/0.4497, allocations: 102.1 kB / 478.1 MB, free: 9.176 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001099/0.4499, allocations: 50 kB / 478.1 MB, free: 9.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.4499, allocations: 0 / 478.1 MB, free: 9.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.555e-05/0.4499, allocations: 28.58 kB / 478.1 MB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.4502, allocations: 22.92 kB / 478.2 MB, free: 9.105 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004707/0.4506, allocations: 249.8 kB / 478.4 MB, free: 8.879 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.4508, allocations: 0.7232 MB / 479.1 MB, free: 8.145 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4508, allocations: 0 / 479.1 MB, free: 8.145 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat