Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009205/0.0009205, allocations: 97.56 kB / 16.04 MB, free: 5.598 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.09476/0.09476, allocations: 12.63 MB / 29.41 MB, free: 5.777 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001736/0.0001736, allocations: 4 kB / 40.28 MB, free: 0.5039 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005607/0.005795, allocations: 2.826 MB / 43.11 MB, free: 5.953 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.Elementary.RealSignals.Sample2): time 1.579/1.585, allocations: 277.5 MB / 320.7 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003456/1.586, allocations: 135.6 kB / 320.8 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.982e-05/1.586, allocations: 0.7812 kB / 320.8 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.301e-05/1.586, allocations: 3.938 kB / 320.8 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/1.586, allocations: 16.59 kB / 320.8 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/1.586, allocations: 28.48 kB / 320.8 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.545e-05/1.586, allocations: 35.91 kB / 320.9 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/1.586, allocations: 19.23 kB / 320.9 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.578e-05/1.586, allocations: 7.938 kB / 320.9 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.656e-05/1.586, allocations: 19.86 kB / 320.9 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/1.586, allocations: 0 / 320.9 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/1.586, allocations: 0 / 320.9 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/1.587, allocations: 4 kB / 320.9 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.973e-05/1.587, allocations: 54.27 kB / 321 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.003e-05/1.587, allocations: 39.83 kB / 321 MB, free: 10.3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/1.587, allocations: 1.656 kB / 321 MB, free: 10.3 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.587, allocations: 0 / 321 MB, free: 10.3 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/1.587, allocations: 0 / 321 MB, free: 10.3 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004564/1.587, allocations: 361.8 kB / 321.4 MB, free: 9.906 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/1.587, allocations: 12.03 kB / 321.4 MB, free: 9.895 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.844e-05/1.587, allocations: 8.844 kB / 321.4 MB, free: 9.887 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/1.588, allocations: 196.1 kB / 321.6 MB, free: 9.656 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/1.588, allocations: 5.5 kB / 321.6 MB, free: 9.652 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/1.588, allocations: 4.375 kB / 321.6 MB, free: 9.648 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/1.588, allocations: 117.4 kB / 321.7 MB, free: 9.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/1.588, allocations: 192 / 321.7 MB, free: 9.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/1.588, allocations: 7.938 kB / 321.7 MB, free: 9.512 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/1.588, allocations: 0 / 321.7 MB, free: 9.512 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.814e-05/1.588, allocations: 29.14 kB / 321.7 MB, free: 9.484 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003726/1.588, allocations: 260.5 kB / 322 MB, free: 9.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/1.589, allocations: 142.8 kB / 322.1 MB, free: 9.004 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.713e-05/1.589, allocations: 32.33 kB / 322.2 MB, free: 8.969 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/1.589, allocations: 0 / 322.2 MB, free: 8.969 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/1.589, allocations: 46.55 kB / 322.2 MB, free: 8.914 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/1.589, allocations: 0.625 kB / 322.2 MB, free: 8.914 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002619/1.589, allocations: 83.08 kB / 322.3 MB, free: 8.828 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/1.589, allocations: 79.33 kB / 322.4 MB, free: 8.734 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/1.589, allocations: 130.1 kB / 322.5 MB, free: 8.594 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/1.589, allocations: 29.69 kB / 322.5 MB, free: 8.559 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.8e-05/1.589, allocations: 88.14 kB / 322.6 MB, free: 8.469 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/1.589, allocations: 0.7812 kB / 322.6 MB, free: 8.469 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/1.589, allocations: 0 / 322.6 MB, free: 8.469 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/1.589, allocations: 316.5 kB / 322.9 MB, free: 8.152 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.224e-05/1.59, allocations: 15.92 kB / 322.9 MB, free: 8.137 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.852e-05/1.59, allocations: 39.67 kB / 323 MB, free: 8.09 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.638e-05/1.59, allocations: 47.36 kB / 323 MB, free: 8.031 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/1.59, allocations: 1.938 kB / 323 MB, free: 8.031 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001253/1.59, allocations: 74.31 kB / 323.1 MB, free: 7.953 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/1.59, allocations: 4 kB / 323.1 MB, free: 7.949 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/1.59, allocations: 5.344 kB / 323.1 MB, free: 7.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/1.59, allocations: 0 / 323.1 MB, free: 7.945 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.6e-05/1.59, allocations: 11.98 kB / 323.1 MB, free: 7.934 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/1.59, allocations: 0.9688 kB / 323.1 MB, free: 7.934 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.005e-05/1.59, allocations: 4 kB / 323.1 MB, free: 7.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/1.59, allocations: 7.062 kB / 323.1 MB, free: 7.926 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.031e-05/1.59, allocations: 133.6 kB / 323.3 MB, free: 7.785 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/1.59, allocations: 45.61 kB / 323.3 MB, free: 7.734 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.057e-05/1.59, allocations: 16.23 kB / 323.3 MB, free: 7.711 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/1.59, allocations: 0 / 323.3 MB, free: 7.711 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/1.59, allocations: 0 / 323.3 MB, free: 7.711 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/1.59, allocations: 0.875 kB / 323.3 MB, free: 7.711 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/1.59, allocations: 177.5 kB / 323.5 MB, free: 7.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.59, allocations: 3.938 kB / 323.5 MB, free: 7.484 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.53e-05/1.59, allocations: 9.219 kB / 323.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/1.59, allocations: 0 / 323.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-06/1.59, allocations: 0 / 323.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/1.591, allocations: 1.031 kB / 323.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.591, allocations: 4 kB / 323.5 MB, free: 7.473 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000174/1.591, allocations: 175.3 kB / 323.7 MB, free: 7.285 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/1.591, allocations: 89.09 kB / 323.8 MB, free: 7.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/1.591, allocations: 4 kB / 323.8 MB, free: 7.176 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.743e-05/1.591, allocations: 4.859 kB / 323.8 MB, free: 7.172 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.55e-05/1.591, allocations: 4.5 kB / 323.8 MB, free: 7.168 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/1.591, allocations: 0 / 323.8 MB, free: 7.168 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.931e-05/1.591, allocations: 99.98 kB / 323.9 MB, free: 7.07 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.591, allocations: 4.25 kB / 323.9 MB, free: 7.066 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002093/1.591, allocations: 8 kB / 323.9 MB, free: 7.059 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (4): * Single equations (assignments): 4 * 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 0.0001016/1.591, allocations: 95.25 kB / 324 MB, free: 6.957 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001354/1.591, allocations: 39.91 kB / 324 MB, free: 6.918 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/1.591, allocations: 0 / 324 MB, free: 6.918 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.629e-05/1.591, allocations: 12.25 kB / 324 MB, free: 6.906 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/1.592, allocations: 28.36 kB / 324.1 MB, free: 6.879 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003168/1.592, allocations: 177.4 kB / 324.2 MB, free: 6.68 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/1.592, allocations: 0.6858 MB / 324.9 MB, free: 5.969 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.829e-05/1.593, allocations: 12.05 kB / 324.9 MB, free: 5.957 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.441e-05/1.593, allocations: 7.438 kB / 324.9 MB, free: 5.949 MB / 250.7 MB Notification: Performance of SimCode: time 2.5e-07/1.593, allocations: 0 / 324.9 MB, free: 5.949 MB / 250.7 MB Notification: Performance of Templates: time 0.002492/1.595, allocations: 463.8 kB / 325.4 MB, free: 5.504 MB / 250.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches