Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") [: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 3.2.3+maint.om/package.mo): time 0.0009766/0.0009767, allocations: 191.2 kB / 7.846 MB, free: 2.48 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008781/0.0008781, allocations: 87.75 kB / 261.5 MB, free: 13.52 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06582/0.06582, allocations: 12.59 MB / 322 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.731e-06/5.761e-06, allocations: 0 / 378.4 MB, free: 75.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08181/0.08184, allocations: 50.36 MB / 428.8 MB, free: 25.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2387/0.3206, allocations: 77.05 MB / 0.494 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.3209, allocations: 75.73 kB / 0.494 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002541/0.3234, allocations: 0.8051 MB / 0.4948 GB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.3234, allocations: 3.938 kB / 0.4948 GB, free: 11.63 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000282/0.3237, allocations: 344.5 kB / 0.4951 GB, free: 11.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3238, allocations: 7.688 kB / 0.4951 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3238, allocations: 8.469 kB / 0.4952 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.324, allocations: 190.1 kB / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.324, allocations: 11.75 kB / 0.4954 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.324, allocations: 0 / 0.4954 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.067e-05/0.3241, allocations: 19.27 kB / 0.4954 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.3243, allocations: 98.05 kB / 0.4955 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3243, allocations: 0 / 0.4955 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3243, allocations: 4 kB / 0.4955 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3243, allocations: 0 / 0.4955 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002628/0.3246, allocations: 244.8 kB / 0.4957 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.3248, allocations: 135.7 kB / 0.4958 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.385e-05/0.3248, allocations: 24.03 kB / 0.4959 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.3248, allocations: 1.359 kB / 0.4959 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.106e-05/0.3249, allocations: 30.56 kB / 0.4959 GB, free: 10.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.233e-06/0.3249, allocations: 0 / 0.4959 GB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001357/0.325, allocations: 56.05 kB / 0.4959 GB, free: 10.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.325, allocations: 81.14 kB / 0.496 GB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.682e-05/0.3251, allocations: 122.4 kB / 0.4961 GB, free: 10.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.515e-06/0.3251, allocations: 25.7 kB / 0.4962 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.984e-05/0.3252, allocations: 81.5 kB / 0.4962 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.3252, allocations: 6.906 kB / 0.4962 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-06/0.3252, allocations: 0 / 0.4962 GB, free: 10.2 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.376e-05/0.3253, allocations: 317.7 kB / 0.4965 GB, free: 9.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.3253, allocations: 3.062 kB / 0.4965 GB, free: 9.883 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.625e-05/0.3253, allocations: 28.53 kB / 0.4966 GB, free: 9.848 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.813e-05/0.3253, allocations: 14.53 kB / 0.4966 GB, free: 9.844 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3253, allocations: 0 / 0.4966 GB, free: 9.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.669e-05/0.3254, allocations: 50.66 kB / 0.4966 GB, free: 9.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.3254, allocations: 13.14 kB / 0.4966 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3254, allocations: 2.625 kB / 0.4966 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.3254, allocations: 4.078 kB / 0.4967 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.088e-05/0.3255, allocations: 12.91 kB / 0.4967 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.349e-06/0.3255, allocations: 0 / 0.4967 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.603e-05/0.3256, allocations: 9.391 kB / 0.4967 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.3256, allocations: 3.812 kB / 0.4967 GB, free: 9.793 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.65e-05/0.3256, allocations: 108.9 kB / 0.4968 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.358e-05/0.3257, allocations: 55.33 kB / 0.4968 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.3257, allocations: 8.844 kB / 0.4968 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3258, allocations: 3.969 kB / 0.4968 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3258, allocations: 0 / 0.4968 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3258, allocations: 0 / 0.4968 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.3259, allocations: 143.8 kB / 0.497 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3259, allocations: 0 / 0.497 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.567e-05/0.3259, allocations: 8.984 kB / 0.497 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3259, allocations: 8.688 kB / 0.497 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.326, allocations: 4 kB / 0.497 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.326, allocations: 0 / 0.497 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.326, allocations: 0 / 0.497 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.585e-05/0.3261, allocations: 172.1 kB / 0.4972 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/0.3261, allocations: 96.55 kB / 0.4973 GB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.3261, allocations: 0 / 0.4973 GB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.811e-05/0.3262, allocations: 13 kB / 0.4973 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.112e-05/0.3262, allocations: 1.406 kB / 0.4973 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.3262, allocations: 3.844 kB / 0.4973 GB, free: 9.195 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.75e-05/0.3263, allocations: 100.1 kB / 0.4974 GB, free: 9.117 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002214/0.3265, allocations: 3.875 kB / 0.4974 GB, free: 9.117 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 6.785e-05/0.3266, allocations: 95.67 kB / 0.4975 GB, free: 9.023 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.493e-05/0.3266, allocations: 20.52 kB / 0.4975 GB, free: 9.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3266, allocations: 4.125 kB / 0.4975 GB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.277e-06/0.3267, allocations: 3.812 kB / 0.4975 GB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.3269, allocations: 20.47 kB / 0.4975 GB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001816/0.3271, allocations: 92.27 kB / 0.4976 GB, free: 8.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.3272, allocations: 0.7045 MB / 0.4983 GB, free: 8.227 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3272, allocations: 0 / 0.4983 GB, free: 8.227 MB / 330.7 MB Notification: Performance of Templates: time 0.002185/0.3294, allocations: 453.3 kB / 0.4987 GB, free: 8.16 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches