Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002266/0.002266, allocations: 173.1 kB / 8.187 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001258/0.001258, allocations: 97.3 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09567/0.09567, allocations: 12.59 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.444e-06/7.614e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08423/0.08426, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.3741, allocations: 79.12 MB / 0.496 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.3744, allocations: 74.41 kB / 0.496 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.00903/0.3835, allocations: 1.99 MB / 0.498 GB, free: 11.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.3835, allocations: 3.656 kB / 0.498 GB, free: 11.59 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005993/0.3842, allocations: 413.8 kB / 0.4984 GB, free: 11.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3842, allocations: 7.75 kB / 0.4984 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.541e-05/0.3843, allocations: 15.5 kB / 0.4984 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.3845, allocations: 201.8 kB / 0.4986 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.3845, allocations: 3.812 kB / 0.4986 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.578e-05/0.3846, allocations: 7.875 kB / 0.4986 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002124/0.3848, allocations: 61.34 kB / 0.4986 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004208/0.3852, allocations: 201.5 kB / 0.4988 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.3853, allocations: 0 / 0.4988 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.3853, allocations: 0 / 0.4988 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.3853, allocations: 7.781 kB / 0.4988 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006321/0.386, allocations: 0.55 MB / 0.4994 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.3862, allocations: 121.9 kB / 0.4995 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.3863, allocations: 58.86 kB / 0.4996 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.3864, allocations: 7.625 kB / 0.4996 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.3864, allocations: 43.22 kB / 0.4996 GB, free: 10.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.074e-06/0.3864, allocations: 3.656 kB / 0.4996 GB, free: 10.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003319/0.3868, allocations: 97.83 kB / 0.4997 GB, free: 10.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.3868, allocations: 104.5 kB / 0.4998 GB, free: 10.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.553e-05/0.3869, allocations: 114.7 kB / 0.4999 GB, free: 9.996 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.387, allocations: 29.55 kB / 0.4999 GB, free: 9.965 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.718e-05/0.387, allocations: 175.5 kB / 0.5001 GB, free: 9.797 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.387, allocations: 26.47 kB / 0.5001 GB, free: 9.781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-06/0.3871, allocations: 3.812 kB / 0.5001 GB, free: 9.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.963e-05/0.3871, allocations: 318.8 kB / 0.5004 GB, free: 9.465 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.066e-05/0.3872, allocations: 20.28 kB / 0.5005 GB, free: 9.465 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.3873, allocations: 114.2 kB / 0.5006 GB, free: 9.344 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.33e-05/0.3874, allocations: 43.66 kB / 0.5006 GB, free: 9.336 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3874, allocations: 0 / 0.5006 GB, free: 9.336 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002788/0.3877, allocations: 141 kB / 0.5007 GB, free: 9.277 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.3877, allocations: 7.391 kB / 0.5008 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.3878, allocations: 3.781 kB / 0.5008 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.3878, allocations: 3.812 kB / 0.5008 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.3882, allocations: 47.92 kB / 0.5008 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.3882, allocations: 5.266 kB / 0.5008 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.3884, allocations: 20.88 kB / 0.5008 GB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.3884, allocations: 7.5 kB / 0.5008 GB, free: 9.266 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 6.354e-05/0.3885, allocations: 44.33 kB / 0.5009 GB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.3887, allocations: 83.8 kB / 0.501 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.052e-05/0.3887, allocations: 13.59 kB / 0.501 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3887, allocations: 1.781 kB / 0.501 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3888, allocations: 3.969 kB / 0.501 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3888, allocations: 0 / 0.501 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002693/0.389, allocations: 178.7 kB / 0.5011 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3891, allocations: 0 / 0.5011 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003249/0.3894, allocations: 34.62 kB / 0.5012 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3894, allocations: 0 / 0.5012 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.3894, allocations: 9.016 kB / 0.5012 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3895, allocations: 0 / 0.5012 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3895, allocations: 3.938 kB / 0.5012 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000374/0.3898, allocations: 351.3 kB / 0.5015 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.966e-05/0.3899, allocations: 90.02 kB / 0.5016 GB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.3899, allocations: 3.812 kB / 0.5016 GB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.3902, allocations: 14.7 kB / 0.5016 GB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.3902, allocations: 1.547 kB / 0.5016 GB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.3903, allocations: 12.22 kB / 0.5016 GB, free: 8.633 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.68e-05/0.3903, allocations: 95.8 kB / 0.5017 GB, free: 8.559 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004235/0.3908, allocations: 30.56 kB / 0.5018 GB, free: 8.551 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001245/0.3909, allocations: 95.98 kB / 0.5019 GB, free: 8.457 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.3911, allocations: 82.81 kB / 0.5019 GB, free: 8.445 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3912, allocations: 0 / 0.5019 GB, free: 8.445 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.765e-05/0.3912, allocations: 14.5 kB / 0.5019 GB, free: 8.445 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.3917, allocations: 48.62 kB / 0.502 GB, free: 8.438 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008251/0.3926, allocations: 300 kB / 0.5023 GB, free: 8.211 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.3928, allocations: 0.7335 MB / 0.503 GB, free: 7.504 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3929, allocations: 4 kB / 0.503 GB, free: 7.5 MB / 330.7 MB Notification: Performance of Templates: time 0.004097/0.397, allocations: 1.481 MB / 0.5044 GB, free: 7.387 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches