Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009986/0.0009985, allocations: 179.3 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.369/1.369, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.0008731/0.000873, allocations: 90.86 kB / 270.3 MB, free: 13.38 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.08551/0.08551, allocations: 12.59 MB / 331.1 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003826, allocations: 9.594 kB / 392 MB, free: 54.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 50.37 MB / 442.4 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1139/0.2149, allocations: 79.13 MB / 0.5093 GB, free: 11.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.2151, allocations: 71.97 kB / 0.5093 GB, free: 11.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005676/0.2208, allocations: 2.188 MB / 0.5115 GB, free: 9.488 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.2208, allocations: 0 / 0.5115 GB, free: 9.488 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.2209, allocations: 4 kB / 0.5115 GB, free: 9.484 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004826/0.2214, allocations: 403.1 kB / 0.5119 GB, free: 9.039 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2214, allocations: 8.031 kB / 0.5119 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.485e-05/0.2215, allocations: 15.81 kB / 0.5119 GB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.2217, allocations: 179 kB / 0.5121 GB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.2217, allocations: 8.188 kB / 0.5121 GB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.2217, allocations: 15.86 kB / 0.5121 GB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.222, allocations: 136.3 kB / 0.5122 GB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.222, allocations: 0 / 0.5122 GB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.222, allocations: 0 / 0.5122 GB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.222, allocations: 4 kB / 0.5122 GB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.2223, allocations: 79.94 kB / 0.5123 GB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/0.223, allocations: 0.5443 MB / 0.5128 GB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.2232, allocations: 82.59 kB / 0.5129 GB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.2233, allocations: 0 / 0.5129 GB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.2233, allocations: 30.56 kB / 0.5129 GB, free: 7.812 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 9.31e-07/0.2233, allocations: 4 kB / 0.5129 GB, free: 7.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.000437/0.2237, allocations: 137.6 kB / 0.5131 GB, free: 7.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.479e-05/0.2238, allocations: 55.39 kB / 0.5131 GB, free: 7.602 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/0.2239, allocations: 118.5 kB / 0.5132 GB, free: 7.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.2239, allocations: 33.7 kB / 0.5133 GB, free: 7.441 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.078e-05/0.224, allocations: 115.7 kB / 0.5134 GB, free: 7.324 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.781e-05/0.224, allocations: 27.64 kB / 0.5134 GB, free: 7.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.2241, allocations: 0 / 0.5134 GB, free: 7.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.2242, allocations: 318.8 kB / 0.5137 GB, free: 6.977 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.2243, allocations: 43.97 kB / 0.5137 GB, free: 6.934 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.2244, allocations: 64.27 kB / 0.5138 GB, free: 6.855 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001222/0.2245, allocations: 51.92 kB / 0.5139 GB, free: 6.805 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2246, allocations: 0 / 0.5139 GB, free: 6.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002846/0.2248, allocations: 149.4 kB / 0.514 GB, free: 6.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2249, allocations: 4 kB / 0.514 GB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.2249, allocations: 4 kB / 0.514 GB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2249, allocations: 0 / 0.514 GB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.2251, allocations: 39.97 kB / 0.514 GB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.2251, allocations: 0 / 0.514 GB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.708e-05/0.2252, allocations: 15.91 kB / 0.5141 GB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.2252, allocations: 16.02 kB / 0.5141 GB, free: 6.574 MB / 362.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 () * Number of clocked 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 8.763e-05/0.2253, allocations: 121.6 kB / 0.5142 GB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.2253, allocations: 15.84 kB / 0.5142 GB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.839e-05/0.2254, allocations: 12.38 kB / 0.5142 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.2254, allocations: 0 / 0.5142 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2254, allocations: 0 / 0.5142 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2254, allocations: 0 / 0.5142 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.2256, allocations: 201.5 kB / 0.5144 GB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2256, allocations: 0 / 0.5144 GB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.2258, allocations: 27.98 kB / 0.5144 GB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.2258, allocations: 3.953 kB / 0.5144 GB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.2258, allocations: 0 / 0.5144 GB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2258, allocations: 4 kB / 0.5144 GB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2258, allocations: 0 / 0.5144 GB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.2263, allocations: 251.7 kB / 0.5147 GB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.151e-05/0.2264, allocations: 85.02 kB / 0.5148 GB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.2264, allocations: 4.047 kB / 0.5148 GB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.324e-05/0.2265, allocations: 11.94 kB / 0.5148 GB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.2265, allocations: 7.984 kB / 0.5148 GB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.2266, allocations: 8 kB / 0.5148 GB, free: 5.738 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.807e-05/0.2266, allocations: 95.27 kB / 0.5149 GB, free: 5.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2266, allocations: 3.938 kB / 0.5149 GB, free: 5.641 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002415/0.2269, allocations: 23.94 kB / 0.5149 GB, free: 5.617 MB / 362.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 () * Number of clocked 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.0001229/0.227, allocations: 95.23 kB / 0.515 GB, free: 5.516 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.2273, allocations: 99.83 kB / 0.5151 GB, free: 5.418 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2273, allocations: 0 / 0.5151 GB, free: 5.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.2274, allocations: 40.03 kB / 0.5151 GB, free: 5.379 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.2277, allocations: 24.19 kB / 0.5152 GB, free: 5.355 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007502/0.2285, allocations: 443.2 kB / 0.5156 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.2288, allocations: 0.7004 MB / 0.5163 GB, free: 4.164 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.934e-05/0.2289, allocations: 16.41 kB / 0.5163 GB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.822e-05/0.2289, allocations: 11.44 kB / 0.5163 GB, free: 4.137 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2289, allocations: 4 kB / 0.5163 GB, free: 4.133 MB / 362.7 MB Notification: Performance of Templates: time 0.003007/0.2319, allocations: 0.8479 MB / 0.5171 GB, free: 3.293 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches