Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007574/0.0007575, allocations: 99.45 kB / 16.04 MB, free: 5.18 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.06955/0.06955, allocations: 12.63 MB / 29.41 MB, free: 5.652 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001754/0.0001755, allocations: 4 kB / 40.26 MB, free: 436 kB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005189/0.005381, allocations: 2.835 MB / 43.1 MB, free: 5.867 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.ClockedWithDiscreteController): time 1.384/1.389, allocations: 278 MB / 321.1 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007129/1.39, allocations: 0.4926 MB / 321.6 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.856e-05/1.39, allocations: 0 / 321.6 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.88e-05/1.39, allocations: 15.86 kB / 321.6 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001117/1.39, allocations: 22.34 kB / 321.6 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002041/1.39, allocations: 47.95 kB / 321.6 MB, free: 9.711 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001484/1.391, allocations: 119.6 kB / 321.8 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/1.391, allocations: 69.89 kB / 321.8 MB, free: 9.527 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.884e-05/1.391, allocations: 49.59 kB / 321.9 MB, free: 9.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.747e-05/1.391, allocations: 43.72 kB / 321.9 MB, free: 9.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/1.391, allocations: 4 kB / 321.9 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.642e-05/1.391, allocations: 8 kB / 321.9 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.472e-05/1.391, allocations: 19.92 kB / 322 MB, free: 9.406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.503e-05/1.391, allocations: 79.5 kB / 322 MB, free: 9.324 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/1.391, allocations: 111.5 kB / 322.1 MB, free: 9.215 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/1.391, allocations: 0 / 322.1 MB, free: 9.215 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.391, allocations: 7.984 kB / 322.1 MB, free: 9.207 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.306e-06/1.391, allocations: 0 / 322.1 MB, free: 9.207 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004877/1.392, allocations: 406.5 kB / 322.5 MB, free: 8.766 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.961e-05/1.392, allocations: 8.031 kB / 322.6 MB, free: 8.758 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/1.392, allocations: 12.84 kB / 322.6 MB, free: 8.746 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/1.392, allocations: 208 kB / 322.8 MB, free: 8.504 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/1.392, allocations: 12.38 kB / 322.8 MB, free: 8.492 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/1.392, allocations: 17.16 kB / 322.8 MB, free: 8.477 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004434/1.393, allocations: 260 kB / 323 MB, free: 8.203 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/1.393, allocations: 8 kB / 323.1 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/1.393, allocations: 0 / 323.1 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/1.393, allocations: 4 kB / 323.1 MB, free: 8.191 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/1.393, allocations: 104.1 kB / 323.2 MB, free: 8.094 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005879/1.393, allocations: 0.5867 MB / 323.7 MB, free: 7.434 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/1.394, allocations: 155.9 kB / 323.9 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/1.394, allocations: 74.64 kB / 324 MB, free: 7.176 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/1.394, allocations: 5.875 kB / 324 MB, free: 7.172 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/1.394, allocations: 42.48 kB / 324 MB, free: 7.121 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/1.394, allocations: 0 / 324 MB, free: 7.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004736/1.394, allocations: 205.3 kB / 324.2 MB, free: 6.918 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/1.395, allocations: 111.3 kB / 324.3 MB, free: 6.785 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.638e-05/1.395, allocations: 130.9 kB / 324.5 MB, free: 6.645 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/1.395, allocations: 29.7 kB / 324.5 MB, free: 6.609 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.896e-05/1.395, allocations: 113 kB / 324.6 MB, free: 6.496 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/1.395, allocations: 27.64 kB / 324.6 MB, free: 6.469 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-06/1.395, allocations: 8 kB / 324.6 MB, free: 6.461 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/1.395, allocations: 320.2 kB / 324.9 MB, free: 6.141 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/1.395, allocations: 40.69 kB / 325 MB, free: 6.102 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/1.395, allocations: 145.8 kB / 325.1 MB, free: 5.91 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/1.395, allocations: 197.5 kB / 325.3 MB, free: 5.668 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.395, allocations: 4 kB / 325.3 MB, free: 5.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003425/1.396, allocations: 209 kB / 325.5 MB, free: 5.453 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/1.396, allocations: 4 kB / 325.5 MB, free: 5.449 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/1.396, allocations: 4.469 kB / 325.5 MB, free: 5.445 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/1.396, allocations: 12 kB / 325.5 MB, free: 5.434 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/1.396, allocations: 52.28 kB / 325.6 MB, free: 5.383 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/1.396, allocations: 7.984 kB / 325.6 MB, free: 5.375 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.716e-05/1.396, allocations: 27.83 kB / 325.6 MB, free: 5.348 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/1.396, allocations: 8 kB / 325.6 MB, free: 5.34 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 0.0001033/1.396, allocations: 133.7 kB / 325.8 MB, free: 5.199 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/1.396, allocations: 93.7 kB / 325.9 MB, free: 5.102 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/1.397, allocations: 20.7 kB / 325.9 MB, free: 5.078 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/1.397, allocations: 7.922 kB / 325.9 MB, free: 5.07 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/1.397, allocations: 4 kB / 325.9 MB, free: 5.066 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.397, allocations: 0 / 325.9 MB, free: 5.066 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003479/1.397, allocations: 209.5 kB / 326.1 MB, free: 4.812 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/1.397, allocations: 0 / 326.1 MB, free: 4.812 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/1.397, allocations: 35.98 kB / 326.1 MB, free: 4.777 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/1.397, allocations: 0 / 326.1 MB, free: 4.777 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/1.397, allocations: 15.98 kB / 326.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/1.397, allocations: 0 / 326.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.397, allocations: 3.938 kB / 326.2 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005258/1.398, allocations: 391.3 kB / 326.5 MB, free: 4.355 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/1.398, allocations: 89.05 kB / 326.6 MB, free: 4.25 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/1.398, allocations: 7.984 kB / 326.6 MB, free: 4.242 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/1.398, allocations: 8 kB / 326.6 MB, free: 4.234 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/1.398, allocations: 12.05 kB / 326.7 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/1.398, allocations: 4 kB / 326.7 MB, free: 4.219 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.19e-05/1.398, allocations: 99.27 kB / 326.8 MB, free: 4.121 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.01e-07/1.398, allocations: 0 / 326.8 MB, free: 4.121 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002935/1.398, allocations: 31.84 kB / 326.8 MB, free: 4.09 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.585e-05/1.398, allocations: 103.2 kB / 326.9 MB, free: 3.98 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002902/1.399, allocations: 135.7 kB / 327 MB, free: 3.848 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.399, allocations: 0 / 327 MB, free: 3.848 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.165e-05/1.399, allocations: 32.92 kB / 327 MB, free: 3.816 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/1.399, allocations: 55.89 kB / 327.1 MB, free: 3.762 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006231/1.4, allocations: 486.1 kB / 327.6 MB, free: 3.258 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/1.4, allocations: 0.7203 MB / 328.3 MB, free: 2.512 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.181e-05/1.4, allocations: 9.078 kB / 328.3 MB, free: 2.504 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.409e-05/1.4, allocations: 19.38 kB / 328.3 MB, free: 2.484 MB / 250.7 MB Notification: Performance of SimCode: time 2.31e-07/1.4, allocations: 0 / 328.3 MB, free: 2.484 MB / 250.7 MB Notification: Performance of Templates: time 0.003134/1.403, allocations: 1.08 MB / 329.4 MB, free: 1.414 MB / 250.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