Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00119/0.00119, allocations: 187.4 kB / 7.845 MB, free: 2.469 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.322/1.322, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009528/0.0009528, allocations: 86.95 kB / 261.5 MB, free: 13.55 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.07626/0.07626, allocations: 12.59 MB / 322 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.492e-06/6.673e-06, allocations: 0 / 378.4 MB, free: 75.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08596, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2496/0.3356, allocations: 79.15 MB / 0.496 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001826/0.3358, allocations: 69.75 kB / 0.4961 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005987/0.3418, allocations: 2.014 MB / 0.498 GB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.3418, allocations: 5.844 kB / 0.498 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004154/0.3423, allocations: 405.3 kB / 0.4984 GB, free: 11.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.3423, allocations: 12.75 kB / 0.4984 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.945e-05/0.3424, allocations: 15.56 kB / 0.4985 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.3426, allocations: 199.5 kB / 0.4986 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.3426, allocations: 3.812 kB / 0.4987 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.3426, allocations: 14.7 kB / 0.4987 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001515/0.3428, allocations: 62.61 kB / 0.4987 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.3431, allocations: 216.7 kB / 0.4989 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3431, allocations: 0 / 0.4989 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.3431, allocations: 0 / 0.4989 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.3432, allocations: 7.906 kB / 0.4989 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004818/0.3436, allocations: 0.5514 MB / 0.4995 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.3439, allocations: 119.8 kB / 0.4996 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.645e-05/0.344, allocations: 59.48 kB / 0.4996 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.344, allocations: 7.562 kB / 0.4997 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.344, allocations: 47.34 kB / 0.4997 GB, free: 10.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.674e-06/0.344, allocations: 0 / 0.4997 GB, free: 10.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002427/0.3443, allocations: 102.4 kB / 0.4998 GB, free: 10.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.3443, allocations: 110.9 kB / 0.4999 GB, free: 10.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.4e-05/0.3444, allocations: 110.2 kB / 0.5 GB, free: 10.03 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.3444, allocations: 25.7 kB / 0.5 GB, free: 10 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.405e-05/0.3445, allocations: 114.2 kB / 0.5001 GB, free: 9.898 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.3445, allocations: 28.16 kB / 0.5002 GB, free: 9.883 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.3445, allocations: 4.031 kB / 0.5002 GB, free: 9.879 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.589e-05/0.3445, allocations: 321.2 kB / 0.5005 GB, free: 9.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.047e-05/0.3446, allocations: 20.81 kB / 0.5005 GB, free: 9.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.361e-05/0.3447, allocations: 122 kB / 0.5006 GB, free: 9.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.043e-05/0.3447, allocations: 42.81 kB / 0.5007 GB, free: 9.422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3447, allocations: 0 / 0.5007 GB, free: 9.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001914/0.3449, allocations: 143.7 kB / 0.5008 GB, free: 9.367 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.345, allocations: 3.906 kB / 0.5008 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.345, allocations: 11.41 kB / 0.5008 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.345, allocations: 3.875 kB / 0.5008 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.3452, allocations: 50.06 kB / 0.5009 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.3452, allocations: 5.438 kB / 0.5009 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3453, allocations: 25.02 kB / 0.5009 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.3453, allocations: 7.719 kB / 0.5009 GB, free: 9.348 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 5.471e-05/0.3454, allocations: 113.5 kB / 0.501 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.3455, allocations: 83.55 kB / 0.5011 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.447e-05/0.3456, allocations: 15.03 kB / 0.5011 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.3456, allocations: 1.734 kB / 0.5011 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3456, allocations: 7.969 kB / 0.5011 GB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3456, allocations: 3.984 kB / 0.5011 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.3458, allocations: 176.6 kB / 0.5013 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3458, allocations: 0 / 0.5013 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.346, allocations: 41 kB / 0.5013 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.346, allocations: 4 kB / 0.5013 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.346, allocations: 3.875 kB / 0.5013 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3461, allocations: 1.828 kB / 0.5013 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3461, allocations: 4 kB / 0.5013 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002495/0.3463, allocations: 362.4 kB / 0.5017 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.702e-05/0.3464, allocations: 88.8 kB / 0.5018 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.3464, allocations: 5.391 kB / 0.5018 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.3466, allocations: 10.41 kB / 0.5018 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.222e-05/0.3466, allocations: 4.797 kB / 0.5018 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.3466, allocations: 5.438 kB / 0.5018 GB, free: 8.645 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.424e-05/0.3466, allocations: 95.73 kB / 0.5019 GB, free: 8.57 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.347, allocations: 31.27 kB / 0.5019 GB, free: 8.559 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 9.206e-05/0.3471, allocations: 103.5 kB / 0.502 GB, free: 8.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000147/0.3472, allocations: 83.61 kB / 0.5021 GB, free: 8.453 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3472, allocations: 0 / 0.5021 GB, free: 8.453 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.876e-05/0.3473, allocations: 15.59 kB / 0.5021 GB, free: 8.449 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.3476, allocations: 48.64 kB / 0.5021 GB, free: 8.441 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004915/0.3481, allocations: 278.2 kB / 0.5024 GB, free: 8.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.3483, allocations: 0.7339 MB / 0.5031 GB, free: 7.543 MB / 330.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3483, allocations: 0 / 0.5031 GB, free: 7.543 MB / 330.7 MB Notification: Performance of Templates: time 0.003304/0.3516, allocations: 1.103 MB / 0.5042 GB, free: 7.441 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches