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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001393/0.001393, allocations: 173.7 kB / 16.76 MB, free: 5.051 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.31/1.31, allocations: 205 MB / 222.6 MB, free: 9.141 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.0007391/0.0007391, allocations: 96.86 kB / 270.5 MB, free: 8.672 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.06454/0.06454, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003212/0.0003212, allocations: 8 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06837/0.06871, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.001607/0.07035, allocations: 1.719 MB / 443.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000607/0.07098, allocations: 0.5659 MB / 444 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.371e-05/0.07107, allocations: 4 kB / 444 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.86e-05/0.07118, allocations: 11.86 kB / 444 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.07129, allocations: 15.86 kB / 444 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/0.07148, allocations: 51.89 kB / 444 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.07161, allocations: 119.6 kB / 444.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.07173, allocations: 57.02 kB / 444.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.296e-05/0.0718, allocations: 39.8 kB / 444.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.392e-05/0.07187, allocations: 43.78 kB / 444.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.07189, allocations: 4 kB / 444.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.567e-05/0.07191, allocations: 8 kB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.311e-05/0.07194, allocations: 23.84 kB / 444.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.234e-05/0.07199, allocations: 51.67 kB / 444.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.355e-05/0.07208, allocations: 84.05 kB / 444.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.07209, allocations: 0 / 444.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.0721, allocations: 0 / 444.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.0721, allocations: 0 / 444.5 MB, free: 13.59 MB / 298.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.0004294/0.07254, allocations: 423.1 kB / 444.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.07257, allocations: 11.97 kB / 444.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.434e-05/0.07261, allocations: 16.75 kB / 444.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.07276, allocations: 200.1 kB / 445.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.07278, allocations: 8.375 kB / 445.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.07281, allocations: 12.38 kB / 445.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.0732, allocations: 254.9 kB / 445.4 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.07323, allocations: 3.906 kB / 445.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.07325, allocations: 4 kB / 445.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.07326, allocations: 8 kB / 445.4 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.07348, allocations: 95.88 kB / 445.5 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004197/0.07391, allocations: 0.5921 MB / 446.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.0742, allocations: 159.8 kB / 446.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.07435, allocations: 78.58 kB / 446.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.07438, allocations: 4 kB / 446.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.252e-05/0.0744, allocations: 38.56 kB / 446.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.0744, allocations: 0 / 446.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004399/0.07485, allocations: 205.4 kB / 446.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.0749, allocations: 110.8 kB / 446.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.602e-05/0.07497, allocations: 130 kB / 446.8 MB, free: 11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.07498, allocations: 29.7 kB / 446.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.003e-05/0.07503, allocations: 115.9 kB / 446.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.07506, allocations: 31.62 kB / 447 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.07509, allocations: 21.72 kB / 447 MB, free: 10.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.954e-05/0.07513, allocations: 322.9 kB / 447.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.07524, allocations: 43.97 kB / 447.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.07537, allocations: 145.6 kB / 447.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.07561, allocations: 201.5 kB / 447.7 MB, free: 9.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.07562, allocations: 4 kB / 447.7 MB, free: 9.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003316/0.07596, allocations: 205.6 kB / 447.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.07598, allocations: 4 kB / 447.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.07599, allocations: 8.047 kB / 447.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.07601, allocations: 11.98 kB / 447.9 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.07615, allocations: 51.91 kB / 448 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.07617, allocations: 4 kB / 448 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.436e-05/0.07626, allocations: 32.08 kB / 448 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.07628, allocations: 8 kB / 448 MB, free: 9.66 MB / 298.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 () * Number of clocked states: 1 (PI.x) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.439e-05/0.07635, allocations: 130.6 kB / 448.1 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.07647, allocations: 89.84 kB / 448.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.194e-05/0.07655, allocations: 20.7 kB / 448.2 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.07656, allocations: 4 kB / 448.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.07657, allocations: 96 / 448.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.07658, allocations: 3.938 kB / 448.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/0.07677, allocations: 209.4 kB / 448.4 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.07678, allocations: 8 kB / 448.5 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.07695, allocations: 43.91 kB / 448.5 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.07696, allocations: 0 / 448.5 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.07697, allocations: 4 kB / 448.5 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.07698, allocations: 0 / 448.5 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.07698, allocations: 0 / 448.5 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004033/0.07739, allocations: 400 kB / 448.9 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.397e-05/0.07742, allocations: 92.89 kB / 449 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.07745, allocations: 8.062 kB / 449 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.07758, allocations: 11.98 kB / 449 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.828e-05/0.07762, allocations: 4 kB / 449 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.07763, allocations: 8 kB / 449 MB, free: 8.543 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.366e-05/0.07767, allocations: 95.27 kB / 449.1 MB, free: 8.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.07768, allocations: 0 / 449.1 MB, free: 8.449 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002849/0.07797, allocations: 24 kB / 449.1 MB, free: 8.426 MB / 298.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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.963e-05/0.07803, allocations: 103.2 kB / 449.2 MB, free: 8.312 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.07831, allocations: 132.6 kB / 449.4 MB, free: 8.184 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.07833, allocations: 4.062 kB / 449.4 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.109e-05/0.07842, allocations: 35.91 kB / 449.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.07884, allocations: 51.95 kB / 449.4 MB, free: 8.094 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005353/0.07938, allocations: 477.2 kB / 449.9 MB, free: 7.586 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.07951, allocations: 0.7204 MB / 450.6 MB, free: 6.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.251e-05/0.07955, allocations: 11.44 kB / 450.6 MB, free: 6.828 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.07955, allocations: 0 / 450.6 MB, free: 6.828 MB / 298.7 MB Notification: Performance of Templates: time 0.002312/0.08187, allocations: 1.517 MB / 452.2 MB, free: 5.312 MB / 298.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/jenkins1/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