Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",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.001054/0.001054, allocations: 208.1 kB / 8.538 MB, free: 2.648 MB / 6.207 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.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000949/0.0009491, allocations: 86.38 kB / 286.3 MB, free: 0.5078 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1084/0.1094, allocations: 56.88 MB / 343.2 MB, free: 7.621 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.3567, allocations: 51.46 MB / 394.7 MB, free: 36.97 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09802/0.4548, allocations: 80.84 MB / 475.5 MB, free: 4.008 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.455, allocations: 72.59 kB / 475.6 MB, free: 3.938 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.02256/0.4776, allocations: 7.735 MB / 483.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4777, allocations: 8 kB / 483.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.4778, allocations: 43.53 kB / 483.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007156/0.4785, allocations: 358.2 kB / 483.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.4786, allocations: 12 kB / 483.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.4786, allocations: 13.78 kB / 483.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003355/0.479, allocations: 149.3 kB / 483.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.48, allocations: 0.6106 MB / 484.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.4801, allocations: 7.938 kB / 484.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.4801, allocations: 0 / 484.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.4801, allocations: 8 kB / 484.5 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008295/0.4809, allocations: 0.7061 MB / 485.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007295/0.4817, allocations: 0.5049 MB / 485.7 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003133/0.482, allocations: 203.3 kB / 485.9 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006012/0.4826, allocations: 0.5973 MB / 486.5 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.4827, allocations: 42.56 kB / 486.6 MB, free: 8.562 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.194e-06/0.4827, allocations: 0 / 486.6 MB, free: 8.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.0006254/0.4833, allocations: 293.5 kB / 486.9 MB, free: 8.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.4834, allocations: 178.5 kB / 487 MB, free: 8.059 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.4837, allocations: 201.1 kB / 487.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.4837, allocations: 25.7 kB / 487.3 MB, free: 7.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.4838, allocations: 132.7 kB / 487.4 MB, free: 7.688 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.576e-05/0.4838, allocations: 49.27 kB / 487.4 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.4838, allocations: 0 / 487.4 MB, free: 7.641 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.484, allocations: 346.8 kB / 487.8 MB, free: 7.293 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.4841, allocations: 57 kB / 487.8 MB, free: 7.238 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.4844, allocations: 396 kB / 488.2 MB, free: 6.688 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.4846, allocations: 135.9 kB / 488.3 MB, free: 6.555 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.4846, allocations: 8 kB / 488.4 MB, free: 6.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006215/0.4852, allocations: 385.6 kB / 488.7 MB, free: 6.164 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4853, allocations: 8 kB / 488.7 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.4853, allocations: 12 kB / 488.8 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.4853, allocations: 16 kB / 488.8 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.4857, allocations: 119.8 kB / 488.9 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.4857, allocations: 23.92 kB / 488.9 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.486, allocations: 51.83 kB / 489 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.486, allocations: 28 kB / 489 MB, free: 5.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.000136/0.4862, allocations: 139.1 kB / 489.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/0.4867, allocations: 276.8 kB / 489.4 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005574/0.4872, allocations: 289.6 kB / 489.7 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.4873, allocations: 11.94 kB / 489.7 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.4873, allocations: 0 / 489.7 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.4873, allocations: 3.906 kB / 489.7 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003533/0.4876, allocations: 281.7 kB / 490 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.4877, allocations: 4 kB / 490 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004458/0.4881, allocations: 107.9 kB / 490.1 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.4881, allocations: 4 kB / 490.1 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.4882, allocations: 3.984 kB / 490.1 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.4882, allocations: 4 kB / 490.1 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.4882, allocations: 0 / 490.1 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008067/0.489, allocations: 0.675 MB / 490.8 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001168/0.4902, allocations: 1.192 MB / 492 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.415e-05/0.4903, allocations: 120.5 kB / 492.1 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.893e-05/0.4903, allocations: 7.984 kB / 492.1 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002772/0.4906, allocations: 20.05 kB / 492.1 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.4907, allocations: 11.98 kB / 492.1 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/0.4907, allocations: 12 kB / 492.1 MB, free: 2.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 0.0001503/0.4909, allocations: 161.2 kB / 492.3 MB, free: 2.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001185/0.4921, allocations: 59.91 kB / 492.3 MB, free: 2.406 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002053/0.4923, allocations: 128.9 kB / 492.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005096/0.4928, allocations: 280.8 kB / 492.7 MB, free: 1.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.4928, allocations: 0 / 492.7 MB, free: 1.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.068e-05/0.4929, allocations: 23.88 kB / 492.8 MB, free: 1.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.4942, allocations: 262.2 kB / 493 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.4965, allocations: 0.5408 MB / 493.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007904/0.4973, allocations: 0.8583 MB / 494.4 MB, free: 260 kB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4973, allocations: 0 / 494.4 MB, free: 260 kB / 366.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1)