Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [: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.002197/0.002201, allocations: 171.4 kB / 8.187 MB, free: 2.188 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 1.709/1.709, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001236/0.001236, allocations: 86.75 kB / 261.8 MB, free: 13.61 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.09476/0.09476, allocations: 12.59 MB / 322.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.606e-06/8.756e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08541/0.08545, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2825/0.368, allocations: 79.15 MB / 0.496 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.3683, allocations: 69.31 kB / 0.4961 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.009068/0.3774, allocations: 2.011 MB / 0.498 GB, free: 11.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.3775, allocations: 5.844 kB / 0.498 GB, free: 11.47 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005957/0.3781, allocations: 407.9 kB / 0.4984 GB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3781, allocations: 7.719 kB / 0.4984 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.3782, allocations: 15.62 kB / 0.4984 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.3784, allocations: 203 kB / 0.4986 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3784, allocations: 5.562 kB / 0.4986 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.3785, allocations: 11.52 kB / 0.4986 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000224/0.3787, allocations: 63.92 kB / 0.4987 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000437/0.3792, allocations: 210.5 kB / 0.4989 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.3792, allocations: 3.875 kB / 0.4989 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.3792, allocations: 0.75 kB / 0.4989 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.3792, allocations: 3.844 kB / 0.4989 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000705/0.38, allocations: 0.5477 MB / 0.4995 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.3803, allocations: 127.6 kB / 0.4996 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.3804, allocations: 66.45 kB / 0.4996 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.3805, allocations: 8.062 kB / 0.4996 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.3805, allocations: 36.25 kB / 0.4997 GB, free: 10.13 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.545e-06/0.3805, allocations: 7.938 kB / 0.4997 GB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003567/0.3809, allocations: 103.2 kB / 0.4998 GB, free: 10.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.381, allocations: 106.6 kB / 0.4999 GB, free: 9.961 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.866e-05/0.3811, allocations: 113 kB / 0.5 GB, free: 9.867 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.3811, allocations: 25.7 kB / 0.5 GB, free: 9.836 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.754e-05/0.3812, allocations: 180.8 kB / 0.5002 GB, free: 9.668 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.3812, allocations: 28.28 kB / 0.5002 GB, free: 9.652 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.885e-06/0.3812, allocations: 3.969 kB / 0.5002 GB, free: 9.648 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.705e-05/0.3813, allocations: 324.3 kB / 0.5005 GB, free: 9.332 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.143e-05/0.3813, allocations: 19.47 kB / 0.5005 GB, free: 9.328 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.3815, allocations: 116.2 kB / 0.5007 GB, free: 9.199 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.424e-05/0.3816, allocations: 45.62 kB / 0.5007 GB, free: 9.191 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3816, allocations: 0 / 0.5007 GB, free: 9.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002865/0.3819, allocations: 141.7 kB / 0.5008 GB, free: 9.137 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3819, allocations: 6.406 kB / 0.5008 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3819, allocations: 3.75 kB / 0.5008 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.3819, allocations: 4.656 kB / 0.5009 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.3823, allocations: 50.17 kB / 0.5009 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3823, allocations: 3.719 kB / 0.5009 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.3825, allocations: 26.45 kB / 0.5009 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.3825, allocations: 15.69 kB / 0.5009 GB, free: 9.117 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.51e-05/0.3826, allocations: 29.39 kB / 0.501 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.3828, allocations: 83.77 kB / 0.5011 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.3829, allocations: 14.95 kB / 0.5011 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.3829, allocations: 3.812 kB / 0.5011 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3829, allocations: 96 / 0.5011 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.383, allocations: 9.25 kB / 0.5011 GB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.3832, allocations: 179 kB / 0.5012 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3833, allocations: 4.125 kB / 0.5013 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003608/0.3836, allocations: 37.66 kB / 0.5013 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.3836, allocations: 7.75 kB / 0.5013 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.3837, allocations: 0 / 0.5013 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3837, allocations: 0 / 0.5013 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.3837, allocations: 9.172 kB / 0.5013 GB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003802/0.3841, allocations: 360.3 kB / 0.5016 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.3841, allocations: 88.86 kB / 0.5017 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.3842, allocations: 1.781 kB / 0.5017 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.3844, allocations: 13.66 kB / 0.5017 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.3845, allocations: 9.141 kB / 0.5018 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.3845, allocations: 1.688 kB / 0.5018 GB, free: 8.488 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.246e-05/0.3846, allocations: 97.3 kB / 0.5019 GB, free: 8.414 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004325/0.385, allocations: 27.23 kB / 0.5019 GB, free: 8.41 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 (15): * Single equations (assignments): 15 * 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.000116/0.3851, allocations: 96.08 kB / 0.502 GB, free: 8.316 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002333/0.3854, allocations: 90.75 kB / 0.5021 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3854, allocations: 0 / 0.5021 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.878e-05/0.3855, allocations: 16.86 kB / 0.5021 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.3859, allocations: 45.89 kB / 0.5021 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007268/0.3867, allocations: 310.2 kB / 0.5024 GB, free: 8.062 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/0.387, allocations: 0.7335 MB / 0.5031 GB, free: 7.355 MB / 330.7 MB Notification: Performance of SimCode: time 1.864e-06/0.387, allocations: 0 / 0.5031 GB, free: 7.355 MB / 330.7 MB Notification: Performance of Templates: time 0.004086/0.3911, allocations: 1.505 MB / 0.5046 GB, free: 7.246 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches