Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009743/0.0009743, allocations: 95.95 kB / 16.04 MB, free: 5.742 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08648/0.08648, allocations: 12.63 MB / 29.41 MB, free: 6.09 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001719/0.0001721, allocations: 4 kB / 40.27 MB, free: 0.6289 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005345/0.005533, allocations: 2.834 MB / 43.1 MB, free: 6.07 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 1.363/1.369, allocations: 278 MB / 321.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008475/1.369, allocations: 0.5324 MB / 321.6 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.198e-05/1.37, allocations: 4 kB / 321.6 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.646e-05/1.37, allocations: 15.86 kB / 321.6 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/1.37, allocations: 28.61 kB / 321.7 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/1.37, allocations: 55.89 kB / 321.7 MB, free: 9.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001514/1.37, allocations: 129.8 kB / 321.8 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/1.37, allocations: 79.97 kB / 321.9 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.213e-05/1.37, allocations: 39.84 kB / 322 MB, free: 9.395 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.216e-05/1.37, allocations: 51.7 kB / 322 MB, free: 9.344 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/1.371, allocations: 4 kB / 322 MB, free: 9.34 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.901e-05/1.371, allocations: 4 kB / 322 MB, free: 9.336 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.888e-05/1.371, allocations: 27.86 kB / 322 MB, free: 9.309 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.669e-05/1.371, allocations: 81.31 kB / 322.1 MB, free: 9.223 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/1.371, allocations: 131.5 kB / 322.3 MB, free: 9.094 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/1.371, allocations: 3.625 kB / 322.3 MB, free: 9.094 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/1.371, allocations: 0 / 322.3 MB, free: 9.094 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/1.371, allocations: 0 / 322.3 MB, free: 9.094 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005279/1.371, allocations: 434.9 kB / 322.7 MB, free: 8.621 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/1.371, allocations: 12.03 kB / 322.7 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.732e-05/1.371, allocations: 21.34 kB / 322.7 MB, free: 8.59 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/1.372, allocations: 208.7 kB / 322.9 MB, free: 8.348 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/1.372, allocations: 12.31 kB / 322.9 MB, free: 8.336 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/1.372, allocations: 17 kB / 322.9 MB, free: 8.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004663/1.372, allocations: 267.7 kB / 323.2 MB, free: 8.039 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.372, allocations: 3.906 kB / 323.2 MB, free: 8.035 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/1.372, allocations: 4 kB / 323.2 MB, free: 8.031 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/1.372, allocations: 4.609 kB / 323.2 MB, free: 8.027 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/1.373, allocations: 98.94 kB / 323.3 MB, free: 7.934 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005653/1.373, allocations: 0.6033 MB / 323.9 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/1.373, allocations: 154.6 kB / 324.1 MB, free: 7.082 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/1.374, allocations: 80.48 kB / 324.1 MB, free: 6.996 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/1.374, allocations: 3.984 kB / 324.2 MB, free: 6.992 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/1.374, allocations: 40.09 kB / 324.2 MB, free: 6.945 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/1.374, allocations: 0 / 324.2 MB, free: 6.945 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004888/1.374, allocations: 205 kB / 324.4 MB, free: 6.742 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/1.374, allocations: 116.8 kB / 324.5 MB, free: 6.605 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/1.374, allocations: 153.1 kB / 324.7 MB, free: 6.449 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/1.374, allocations: 25.7 kB / 324.7 MB, free: 6.418 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.713e-05/1.374, allocations: 120.4 kB / 324.8 MB, free: 6.297 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/1.374, allocations: 24.88 kB / 324.8 MB, free: 6.273 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-06/1.374, allocations: 4 kB / 324.8 MB, free: 6.27 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.897e-05/1.375, allocations: 322.8 kB / 325.1 MB, free: 5.945 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/1.375, allocations: 45.88 kB / 325.2 MB, free: 5.902 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/1.375, allocations: 141.6 kB / 325.3 MB, free: 5.719 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/1.375, allocations: 197.5 kB / 325.5 MB, free: 5.477 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/1.375, allocations: 0 / 325.5 MB, free: 5.477 MB / 250.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003479/1.376, allocations: 217.4 kB / 325.7 MB, free: 5.258 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/1.376, allocations: 8 kB / 325.7 MB, free: 5.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.376, allocations: 4 kB / 325.7 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/1.376, allocations: 4.375 kB / 325.7 MB, free: 5.242 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/1.376, allocations: 43.92 kB / 325.8 MB, free: 5.199 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/1.376, allocations: 7.984 kB / 325.8 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.748e-05/1.376, allocations: 27.78 kB / 325.8 MB, free: 5.164 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/1.376, allocations: 16.06 kB / 325.8 MB, free: 5.148 MB / 250.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 9.776e-05/1.376, allocations: 137.8 kB / 326 MB, free: 5.004 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/1.376, allocations: 89.47 kB / 326.1 MB, free: 4.91 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.202e-05/1.376, allocations: 20.7 kB / 326.1 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/1.376, allocations: 4 kB / 326.1 MB, free: 4.883 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/1.376, allocations: 0 / 326.1 MB, free: 4.883 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/1.376, allocations: 4.234 kB / 326.1 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/1.376, allocations: 221.4 kB / 326.3 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/1.376, allocations: 0 / 326.3 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/1.377, allocations: 47.89 kB / 326.4 MB, free: 4.566 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/1.377, allocations: 4 kB / 326.4 MB, free: 4.562 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/1.377, allocations: 0 / 326.4 MB, free: 4.562 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/1.377, allocations: 4 kB / 326.4 MB, free: 4.559 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.377, allocations: 0 / 326.4 MB, free: 4.559 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004856/1.377, allocations: 403.2 kB / 326.8 MB, free: 4.145 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.348e-05/1.377, allocations: 97.03 kB / 326.8 MB, free: 4.031 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/1.377, allocations: 8 kB / 326.9 MB, free: 4.023 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/1.377, allocations: 12.05 kB / 326.9 MB, free: 4.012 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/1.377, allocations: 11.98 kB / 326.9 MB, free: 4 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/1.378, allocations: 4 kB / 326.9 MB, free: 3.996 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.411e-05/1.378, allocations: 117.9 kB / 327 MB, free: 3.883 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.378, allocations: 0 / 327 MB, free: 3.883 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002747/1.378, allocations: 31.91 kB / 327 MB, free: 3.852 MB / 250.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 8.142e-05/1.378, allocations: 104.2 kB / 327.1 MB, free: 3.742 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002991/1.378, allocations: 128.6 kB / 327.3 MB, free: 3.617 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.378, allocations: 3.938 kB / 327.3 MB, free: 3.613 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.332e-05/1.378, allocations: 39.97 kB / 327.3 MB, free: 3.574 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/1.379, allocations: 68.25 kB / 327.4 MB, free: 3.508 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006591/1.379, allocations: 0.5135 MB / 327.9 MB, free: 2.961 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/1.38, allocations: 0.7281 MB / 328.6 MB, free: 2.207 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.82e-05/1.38, allocations: 13.42 kB / 328.6 MB, free: 2.195 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/1.38, allocations: 15.44 kB / 328.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of SimCode: time 2.7e-07/1.38, allocations: 0 / 328.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of Templates: time 0.003231/1.383, allocations: 1.193 MB / 329.8 MB, free: 0.9961 MB / 250.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches