Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 104.5 kB / 16.45 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 189.4 kB / 17.39 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08306/0.08306, allocations: 12.59 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 86.69 kB / 394.2 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1141, allocations: 49.41 MB / 443.6 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.002979/0.1171, allocations: 1.524 MB / 445.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004624/0.1176, allocations: 143.5 kB / 445.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1178, allocations: 7.938 kB / 445.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.24e-05/0.1178, allocations: 3.938 kB / 445.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.118, allocations: 7.922 kB / 445.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.1183, allocations: 35.91 kB / 445.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.1184, allocations: 35.86 kB / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.1185, allocations: 27.89 kB / 445.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.705e-05/0.1186, allocations: 7.938 kB / 445.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.076e-05/0.1186, allocations: 19.92 kB / 445.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.1187, allocations: 4 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.1187, allocations: 0 / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.563e-05/0.1188, allocations: 15.92 kB / 445.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.1188, allocations: 23.81 kB / 445.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.119, allocations: 51.75 kB / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.119, allocations: 0 / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.119, allocations: 0 / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.119, allocations: 4 kB / 445.5 MB, free: 14.57 MB / 334.1 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.0005497/0.1196, allocations: 371.2 kB / 445.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.1196, allocations: 8.031 kB / 445.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.188e-05/0.1197, allocations: 12.78 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.12, allocations: 192.1 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.12, allocations: 4.375 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.12, allocations: 384 / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.1204, allocations: 133.4 kB / 446.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.1204, allocations: 192 / 446.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.1204, allocations: 3.938 kB / 446.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1204, allocations: 0 / 446.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.25e-05/0.1205, allocations: 19.98 kB / 446.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003965/0.1209, allocations: 261.8 kB / 446.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.1212, allocations: 142.2 kB / 446.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.938e-05/0.1213, allocations: 25.77 kB / 446.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.1213, allocations: 4 kB / 446.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.1214, allocations: 42.5 kB / 446.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.623e-06/0.1214, allocations: 0 / 446.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002934/0.1217, allocations: 77.52 kB / 446.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.488e-05/0.1217, allocations: 77.11 kB / 446.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.1219, allocations: 134.1 kB / 447 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.1219, allocations: 25.7 kB / 447 MB, free: 12.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.122, allocations: 92.25 kB / 447.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.122, allocations: 0 / 447.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.832e-05/0.1221, allocations: 25.62 kB / 447.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1222, allocations: 314.8 kB / 447.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.705e-05/0.1223, allocations: 12 kB / 447.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.551e-05/0.1224, allocations: 35.59 kB / 447.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.962e-05/0.1225, allocations: 47.36 kB / 447.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1225, allocations: 0 / 447.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001372/0.1226, allocations: 69.66 kB / 447.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.1227, allocations: 8.031 kB / 447.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1227, allocations: 0 / 447.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.876e-05/0.1227, allocations: 4 kB / 447.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.442e-05/0.1228, allocations: 15.92 kB / 447.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.1228, allocations: 3.938 kB / 447.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.705e-05/0.1229, allocations: 4 kB / 447.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.1229, allocations: 0 / 447.6 MB, free: 12.14 MB / 334.1 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 0.000118/0.123, allocations: 121.8 kB / 447.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.1231, allocations: 49.61 kB / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.037e-05/0.1232, allocations: 16.23 kB / 447.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.1232, allocations: 0 / 447.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1232, allocations: 3.938 kB / 447.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1232, allocations: 4 kB / 447.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002376/0.1234, allocations: 169.6 kB / 448 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1234, allocations: 0 / 448 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.003e-05/0.1235, allocations: 8 kB / 448 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1235, allocations: 3.938 kB / 448 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.1235, allocations: 0 / 448 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.1236, allocations: 3.984 kB / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1236, allocations: 8 kB / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.1238, allocations: 160.2 kB / 448.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1239, allocations: 96.94 kB / 448.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.1239, allocations: 4 kB / 448.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.07e-05/0.124, allocations: 3.984 kB / 448.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.1241, allocations: 3.938 kB / 448.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.1241, allocations: 8 kB / 448.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.764e-05/0.1242, allocations: 103.3 kB / 448.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1242, allocations: 0 / 448.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.1244, allocations: 4 kB / 448.4 MB, free: 11.28 MB / 334.1 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.0001532/0.1246, allocations: 95.23 kB / 448.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001762/0.1247, allocations: 27.92 kB / 448.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.1248, allocations: 4.25 kB / 448.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.811e-05/0.1248, allocations: 12 kB / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/0.1252, allocations: 19.95 kB / 448.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004398/0.1257, allocations: 150.4 kB / 448.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.1261, allocations: 0.6885 MB / 449.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.669e-05/0.1262, allocations: 4.062 kB / 449.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.1262, allocations: 15.44 kB / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1262, allocations: 0 / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of Templates: time 0.003052/0.1293, allocations: 0.4966 MB / 449.9 MB, free: 9.711 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches