Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001619/0.001619, allocations: 180.2 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0009189/0.0009191, allocations: 90.81 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07501/0.07501, allocations: 12.6 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.000388, allocations: 20.36 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1021, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.2149, allocations: 79.95 MB / 0.5101 GB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.2152, allocations: 71.97 kB / 0.5101 GB, free: 10.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006785/0.222, allocations: 2.333 MB / 0.5124 GB, free: 8.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.222, allocations: 7.984 kB / 0.5124 GB, free: 8.473 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.222, allocations: 0 / 0.5124 GB, free: 8.473 MB / 362.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.0006916/0.2227, allocations: 411.1 kB / 0.5128 GB, free: 8.023 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.2228, allocations: 11.97 kB / 0.5128 GB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.051e-05/0.2229, allocations: 19.81 kB / 0.5129 GB, free: 7.992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.2232, allocations: 191 kB / 0.513 GB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.2232, allocations: 15.95 kB / 0.513 GB, free: 7.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.442e-05/0.2232, allocations: 12 kB / 0.5131 GB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005889/0.2238, allocations: 252.2 kB / 0.5133 GB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.2239, allocations: 3.938 kB / 0.5133 GB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.2239, allocations: 4 kB / 0.5133 GB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.2239, allocations: 4 kB / 0.5133 GB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002641/0.2242, allocations: 91.88 kB / 0.5134 GB, free: 7.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000763/0.225, allocations: 0.5882 MB / 0.514 GB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.2253, allocations: 157.4 kB / 0.5141 GB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.2253, allocations: 12.12 kB / 0.5141 GB, free: 6.512 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.2253, allocations: 34.56 kB / 0.5142 GB, free: 6.469 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.2254, allocations: 0 / 0.5142 GB, free: 6.469 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005455/0.2259, allocations: 197.4 kB / 0.5144 GB, free: 6.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.653e-05/0.226, allocations: 114.7 kB / 0.5145 GB, free: 6.133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.2261, allocations: 121.6 kB / 0.5146 GB, free: 6.004 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.2261, allocations: 29.7 kB / 0.5146 GB, free: 5.969 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.2262, allocations: 108 kB / 0.5147 GB, free: 5.859 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.2262, allocations: 23.7 kB / 0.5147 GB, free: 5.836 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-06/0.2263, allocations: 12.06 kB / 0.5147 GB, free: 5.824 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2264, allocations: 322.8 kB / 0.5151 GB, free: 5.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.2265, allocations: 35.98 kB / 0.5151 GB, free: 5.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.2267, allocations: 144.7 kB / 0.5152 GB, free: 5.277 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.2268, allocations: 55.92 kB / 0.5153 GB, free: 5.223 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2269, allocations: 0 / 0.5153 GB, free: 5.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003813/0.2272, allocations: 209.4 kB / 0.5155 GB, free: 5.012 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2273, allocations: 4 kB / 0.5155 GB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.2273, allocations: 4 kB / 0.5155 GB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.2273, allocations: 4 kB / 0.5155 GB, free: 5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.2275, allocations: 51.91 kB / 0.5155 GB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.2275, allocations: 4 kB / 0.5155 GB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.2277, allocations: 15.91 kB / 0.5156 GB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.2277, allocations: 16.16 kB / 0.5156 GB, free: 4.914 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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 0.0001192/0.2278, allocations: 133.7 kB / 0.5157 GB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.228, allocations: 85.48 kB / 0.5158 GB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.228, allocations: 12.72 kB / 0.5158 GB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2281, allocations: 4 kB / 0.5158 GB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2281, allocations: 0 / 0.5158 GB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2281, allocations: 0 / 0.5158 GB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.2283, allocations: 205.5 kB / 0.516 GB, free: 4.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2284, allocations: 0 / 0.516 GB, free: 4.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.2285, allocations: 43.97 kB / 0.516 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.846e-06/0.2286, allocations: 3.953 kB / 0.516 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.2286, allocations: 0 / 0.516 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2286, allocations: 4 kB / 0.516 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2286, allocations: 0 / 0.516 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.2292, allocations: 410.8 kB / 0.5164 GB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/0.2292, allocations: 97 kB / 0.5165 GB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.2293, allocations: 8 kB / 0.5165 GB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.2294, allocations: 8 kB / 0.5165 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.2295, allocations: 11.92 kB / 0.5166 GB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.2295, allocations: 8 kB / 0.5166 GB, free: 3.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.167e-05/0.2295, allocations: 95.27 kB / 0.5167 GB, free: 3.688 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2296, allocations: 96 / 0.5167 GB, free: 3.688 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003146/0.2299, allocations: 31.88 kB / 0.5167 GB, free: 3.656 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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.0001196/0.23, allocations: 107.2 kB / 0.5168 GB, free: 3.543 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.2303, allocations: 128.6 kB / 0.5169 GB, free: 3.418 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2303, allocations: 0 / 0.5169 GB, free: 3.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.993e-05/0.2304, allocations: 35.92 kB / 0.5169 GB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.2308, allocations: 47.91 kB / 0.517 GB, free: 3.336 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/0.2316, allocations: 474 kB / 0.5174 GB, free: 2.844 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.2319, allocations: 0.7165 MB / 0.5181 GB, free: 2.102 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.422e-05/0.232, allocations: 12.59 kB / 0.5182 GB, free: 2.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.386e-05/0.232, allocations: 19.44 kB / 0.5182 GB, free: 2.07 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.232, allocations: 0 / 0.5182 GB, free: 2.07 MB / 362.7 MB Notification: Performance of Templates: time 0.003326/0.2353, allocations: 1.002 MB / 0.5192 GB, free: 1.078 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches