Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") [: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.001619/0.001619, allocations: 176 kB / 8.19 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 1.839/1.839, 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.001328/0.001328, allocations: 97.97 kB / 261.8 MB, free: 13.64 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.1215/0.1215, allocations: 12.59 MB / 322.4 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.234e-06/7.534e-06, allocations: 0 / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/0.08527, allocations: 50.37 MB / 428.7 MB, free: 25.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2899/0.3753, allocations: 78.3 MB / 0.4952 GB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.3755, allocations: 69.45 kB / 0.4952 GB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.008129/0.3837, allocations: 1.852 MB / 0.497 GB, free: 11.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.3838, allocations: 3.688 kB / 0.497 GB, free: 11.28 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005301/0.3843, allocations: 402.7 kB / 0.4974 GB, free: 10.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3844, allocations: 7.688 kB / 0.4974 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.3844, allocations: 13.41 kB / 0.4974 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.3846, allocations: 187.3 kB / 0.4976 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.3846, allocations: 7.781 kB / 0.4976 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.3847, allocations: 4.812 kB / 0.4976 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001613/0.3849, allocations: 45.67 kB / 0.4977 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.3851, allocations: 89.92 kB / 0.4978 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.3851, allocations: 5.594 kB / 0.4978 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.3851, allocations: 3.984 kB / 0.4978 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3851, allocations: 3.875 kB / 0.4978 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008198/0.386, allocations: 0.5029 MB / 0.4983 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.3861, allocations: 49.55 kB / 0.4983 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.267e-05/0.3862, allocations: 22.92 kB / 0.4983 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.3862, allocations: 0 / 0.4983 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/0.3862, allocations: 33.62 kB / 0.4984 GB, free: 10.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.3862, allocations: 3.938 kB / 0.4984 GB, free: 10.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002211/0.3864, allocations: 67.95 kB / 0.4984 GB, free: 10.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/0.3865, allocations: 55.25 kB / 0.4985 GB, free: 10.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.21e-05/0.3866, allocations: 117.1 kB / 0.4986 GB, free: 9.957 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.3866, allocations: 25.7 kB / 0.4986 GB, free: 9.926 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.743e-05/0.3867, allocations: 172.5 kB / 0.4988 GB, free: 9.766 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.3867, allocations: 29.72 kB / 0.4988 GB, free: 9.746 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.3867, allocations: 0 / 0.4988 GB, free: 9.746 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.547e-05/0.3868, allocations: 312.6 kB / 0.4991 GB, free: 9.434 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.473e-05/0.3869, allocations: 25.53 kB / 0.4991 GB, free: 9.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.668e-05/0.3869, allocations: 47.34 kB / 0.4992 GB, free: 9.387 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.077e-05/0.387, allocations: 22.89 kB / 0.4992 GB, free: 9.387 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.387, allocations: 3.75 kB / 0.4992 GB, free: 9.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002083/0.3873, allocations: 100.7 kB / 0.4993 GB, free: 9.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.3873, allocations: 6.375 kB / 0.4993 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3873, allocations: 7.812 kB / 0.4993 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3873, allocations: 0 / 0.4993 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.3876, allocations: 33.27 kB / 0.4993 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3876, allocations: 3.875 kB / 0.4993 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.3878, allocations: 22.88 kB / 0.4994 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.3878, allocations: 3.812 kB / 0.4994 GB, free: 9.324 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: 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.86e-05/0.3879, allocations: 33.52 kB / 0.4994 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.3879, allocations: 3.906 kB / 0.4994 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.952e-05/0.388, allocations: 16.16 kB / 0.4994 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.388, allocations: 0 / 0.4994 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.388, allocations: 0 / 0.4994 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.388, allocations: 5.641 kB / 0.4994 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.3882, allocations: 170.5 kB / 0.4996 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3882, allocations: 0 / 0.4996 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.3885, allocations: 28 kB / 0.4996 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.3885, allocations: 0 / 0.4996 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.3886, allocations: 0 / 0.4996 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3886, allocations: 4 kB / 0.4996 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3886, allocations: 3.875 kB / 0.4996 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000245/0.3888, allocations: 195.7 kB / 0.4998 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.3889, allocations: 86.22 kB / 0.4999 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.3889, allocations: 3.938 kB / 0.4999 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.3891, allocations: 10.36 kB / 0.4999 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.3891, allocations: 2.344 kB / 0.4999 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.3892, allocations: 7.688 kB / 0.4999 GB, free: 8.863 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.282e-05/0.3892, allocations: 96.53 kB / 0.5 GB, free: 8.785 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003135/0.3896, allocations: 22.78 kB / 0.5 GB, free: 8.781 MB / 330.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 0.0001027/0.3897, allocations: 95.52 kB / 0.5001 GB, free: 8.691 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001706/0.3898, allocations: 52.89 kB / 0.5002 GB, free: 8.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3899, allocations: 0 / 0.5002 GB, free: 8.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.051e-05/0.3899, allocations: 27.03 kB / 0.5002 GB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.3903, allocations: 17.95 kB / 0.5002 GB, free: 8.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007317/0.391, allocations: 293.9 kB / 0.5005 GB, free: 8.461 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.3913, allocations: 0.7161 MB / 0.5012 GB, free: 7.758 MB / 330.7 MB Notification: Performance of SimCode: time 7.82e-07/0.3913, allocations: 192 / 0.5012 GB, free: 7.758 MB / 330.7 MB Notification: Performance of Templates: time 0.003311/0.3946, allocations: 1.263 MB / 0.5024 GB, free: 7.672 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches