Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007203/0.0007203, allocations: 93.27 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.06526/0.06526, allocations: 12.63 MB / 29.41 MB, free: 6.086 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001463/0.0001463, allocations: 4 kB / 40.27 MB, free: 0.6172 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.003632/0.00379, allocations: 2.83 MB / 43.1 MB, free: 6.062 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.ClockedWithDiscreteTextbookController): time 1.384/1.388, allocations: 278 MB / 321.1 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006315/1.388, allocations: 483.1 kB / 321.5 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.684e-05/1.388, allocations: 5.5 kB / 321.5 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.689e-05/1.389, allocations: 7.875 kB / 321.5 MB, free: 11.63 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.404e-05/1.389, allocations: 19.84 kB / 321.6 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/1.389, allocations: 56.78 kB / 321.6 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/1.389, allocations: 107.6 kB / 321.7 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/1.389, allocations: 86.06 kB / 321.8 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.198e-05/1.389, allocations: 35.8 kB / 321.8 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.829e-05/1.389, allocations: 44.3 kB / 321.9 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/1.389, allocations: 4.531 kB / 321.9 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.661e-05/1.389, allocations: 8 kB / 321.9 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/1.389, allocations: 20.61 kB / 321.9 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.204e-05/1.389, allocations: 74.16 kB / 322 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/1.39, allocations: 111.5 kB / 322.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/1.39, allocations: 1.594 kB / 322.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.233e-06/1.39, allocations: 0 / 322.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.576e-06/1.39, allocations: 0 / 322.1 MB, free: 11.07 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004609/1.39, allocations: 404.9 kB / 322.5 MB, free: 10.63 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/1.39, allocations: 16.02 kB / 322.5 MB, free: 10.62 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/1.39, allocations: 13.34 kB / 322.5 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/1.39, allocations: 212.6 kB / 322.7 MB, free: 10.36 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/1.39, allocations: 14.22 kB / 322.7 MB, free: 10.35 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.903e-05/1.39, allocations: 12.38 kB / 322.8 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/1.391, allocations: 242.4 kB / 323 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/1.391, allocations: 0 / 323 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/1.391, allocations: 0 / 323 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/1.391, allocations: 4.594 kB / 323 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/1.391, allocations: 103.1 kB / 323.1 MB, free: 9.977 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005283/1.392, allocations: 0.5833 MB / 323.7 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/1.392, allocations: 152.2 kB / 323.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/1.392, allocations: 85.09 kB / 323.9 MB, free: 9.059 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/1.392, allocations: 7.984 kB / 323.9 MB, free: 9.051 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/1.392, allocations: 37.44 kB / 324 MB, free: 9.008 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/1.392, allocations: 0 / 324 MB, free: 9.008 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004564/1.393, allocations: 200.1 kB / 324.1 MB, free: 8.809 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/1.393, allocations: 106.8 kB / 324.3 MB, free: 8.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/1.393, allocations: 130 kB / 324.4 MB, free: 8.539 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/1.393, allocations: 29.7 kB / 324.4 MB, free: 8.504 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/1.393, allocations: 109.5 kB / 324.5 MB, free: 8.395 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/1.393, allocations: 31.58 kB / 324.5 MB, free: 8.363 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-06/1.393, allocations: 4 kB / 324.6 MB, free: 8.359 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.392e-05/1.393, allocations: 323.7 kB / 324.9 MB, free: 8.035 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/1.393, allocations: 41.16 kB / 324.9 MB, free: 7.996 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/1.393, allocations: 134.4 kB / 325 MB, free: 7.824 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/1.394, allocations: 186.7 kB / 325.2 MB, free: 7.605 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/1.394, allocations: 4 kB / 325.2 MB, free: 7.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003252/1.394, allocations: 200.5 kB / 325.4 MB, free: 7.406 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/1.394, allocations: 4 kB / 325.4 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/1.394, allocations: 4 kB / 325.4 MB, free: 7.398 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/1.394, allocations: 7.938 kB / 325.4 MB, free: 7.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/1.394, allocations: 55.84 kB / 325.5 MB, free: 7.336 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/1.394, allocations: 4 kB / 325.5 MB, free: 7.332 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.305e-05/1.394, allocations: 21.88 kB / 325.5 MB, free: 7.312 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/1.394, allocations: 15.94 kB / 325.5 MB, free: 7.297 MB / 250.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.02e-05/1.394, allocations: 132.9 kB / 325.7 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/1.394, allocations: 89.44 kB / 325.7 MB, free: 7.066 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.524e-05/1.394, allocations: 12.66 kB / 325.8 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/1.394, allocations: 4 kB / 325.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/1.394, allocations: 0 / 325.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/1.395, allocations: 0 / 325.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/1.395, allocations: 205.5 kB / 326 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/1.395, allocations: 4 kB / 326 MB, free: 6.793 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/1.395, allocations: 40.78 kB / 326 MB, free: 6.754 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/1.395, allocations: 0.75 kB / 326 MB, free: 6.754 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/1.395, allocations: 3.938 kB / 326 MB, free: 6.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/1.395, allocations: 4.625 kB / 326 MB, free: 6.746 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/1.395, allocations: 1.031 kB / 326 MB, free: 6.746 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004629/1.395, allocations: 392.1 kB / 326.4 MB, free: 6.348 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.656e-05/1.395, allocations: 85.05 kB / 326.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/1.395, allocations: 12.64 kB / 326.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/1.396, allocations: 12.66 kB / 326.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/1.396, allocations: 8.609 kB / 326.5 MB, free: 6.215 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.495e-06/1.396, allocations: 4 kB / 326.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.002e-05/1.396, allocations: 103.3 kB / 326.6 MB, free: 6.109 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.382e-06/1.396, allocations: 0 / 326.6 MB, free: 6.109 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002642/1.396, allocations: 31.88 kB / 326.7 MB, free: 6.078 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 (14): * Single equations (assignments): 14 * 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 7.838e-05/1.396, allocations: 99.48 kB / 326.8 MB, free: 5.973 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002815/1.396, allocations: 127.9 kB / 326.9 MB, free: 5.848 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/1.396, allocations: 4 kB / 326.9 MB, free: 5.844 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.164e-05/1.396, allocations: 36.69 kB / 326.9 MB, free: 5.809 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/1.397, allocations: 52.45 kB / 327 MB, free: 5.758 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00061/1.398, allocations: 489.5 kB / 327.4 MB, free: 5.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/1.398, allocations: 0.7087 MB / 328.2 MB, free: 4.516 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.524e-05/1.398, allocations: 16.64 kB / 328.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/1.398, allocations: 11.44 kB / 328.2 MB, free: 4.488 MB / 250.7 MB Notification: Performance of SimCode: time 2.2e-07/1.398, allocations: 0 / 328.2 MB, free: 4.488 MB / 250.7 MB Notification: Performance of Templates: time 0.002865/1.401, allocations: 1.045 MB / 329.2 MB, free: 3.453 MB / 250.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