Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001277/0.001277, allocations: 178.9 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.4 MB / 222.6 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007988/0.0007989, allocations: 92.81 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06964/0.06964, allocations: 12.59 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.000397, allocations: 12 kB / 392.7 MB, free: 66.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06591/0.06633, allocations: 50.38 MB / 443 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.001308/0.06767, allocations: 1.247 MB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005984/0.06829, allocations: 496 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.879e-05/0.06838, allocations: 0 / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.823e-05/0.06842, allocations: 0 / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.06854, allocations: 11.92 kB / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.06876, allocations: 35.89 kB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.879e-05/0.06884, allocations: 39.8 kB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.743e-05/0.06893, allocations: 8 kB / 444.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.823e-05/0.069, allocations: 15.92 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.388e-05/0.06905, allocations: 15.94 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.06907, allocations: 0 / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.06909, allocations: 4 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.647e-05/0.06912, allocations: 15.91 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.881e-05/0.06914, allocations: 33.64 kB / 444.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.607e-05/0.0692, allocations: 35.89 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.06921, allocations: 0 / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.06922, allocations: 0 / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.06923, allocations: 0 / 445 MB, free: 13.8 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003236/0.06956, allocations: 363.3 kB / 445.3 MB, free: 13.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.06959, allocations: 12.03 kB / 445.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.06963, allocations: 7.906 kB / 445.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.06976, allocations: 186.9 kB / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.06978, allocations: 4 kB / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.425e-06/0.0698, allocations: 0 / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.06999, allocations: 93.05 kB / 445.6 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.07001, allocations: 0 / 445.6 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.07002, allocations: 7.984 kB / 445.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.07003, allocations: 4 kB / 445.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.16e-05/0.07011, allocations: 19.92 kB / 445.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002212/0.07033, allocations: 269.8 kB / 445.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.797e-05/0.07041, allocations: 45.16 kB / 446 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.497e-05/0.07047, allocations: 21.77 kB / 446 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.07049, allocations: 4 kB / 446 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.48e-05/0.07051, allocations: 34.56 kB / 446 MB, free: 12.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.07052, allocations: 4 kB / 446 MB, free: 12.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002094/0.07073, allocations: 69.52 kB / 446.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.07077, allocations: 85.36 kB / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.045e-05/0.07086, allocations: 136 kB / 446.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.144e-06/0.07087, allocations: 29.64 kB / 446.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.757e-05/0.07091, allocations: 92.06 kB / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.151e-05/0.07092, allocations: 0 / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-06/0.07093, allocations: 0 / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.912e-05/0.07098, allocations: 322.8 kB / 446.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.92e-05/0.07102, allocations: 11.92 kB / 446.8 MB, free: 11.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.499e-05/0.07106, allocations: 25.72 kB / 446.8 MB, free: 11.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.031e-05/0.07111, allocations: 11.98 kB / 446.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.07112, allocations: 0 / 446.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001059/0.07123, allocations: 65.59 kB / 446.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.07125, allocations: 11.94 kB / 446.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.07126, allocations: 0 / 446.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.07128, allocations: 0 / 446.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.409e-05/0.07135, allocations: 7.984 kB / 446.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.07136, allocations: 4 kB / 446.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.464e-05/0.0714, allocations: 0 / 446.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.07141, allocations: 4 kB / 446.9 MB, free: 11.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.15e-05/0.07147, allocations: 129.6 kB / 447 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.07152, allocations: 37.61 kB / 447.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.249e-05/0.07155, allocations: 11.83 kB / 447.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.07156, allocations: 0 / 447.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.07156, allocations: 4 kB / 447.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.07157, allocations: 0 / 447.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.07169, allocations: 169.6 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.0717, allocations: 0 / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.528e-05/0.07175, allocations: 15.92 kB / 447.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.07176, allocations: 0 / 447.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.07177, allocations: 4.031 kB / 447.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.07177, allocations: 0 / 447.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.07178, allocations: 0 / 447.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001225/0.07191, allocations: 164.2 kB / 447.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.263e-05/0.07195, allocations: 93.12 kB / 447.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.07197, allocations: 0 / 447.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.462e-05/0.07204, allocations: 4 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.54e-05/0.07207, allocations: 0 / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.07208, allocations: 4 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.545e-05/0.07213, allocations: 117.6 kB / 447.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07214, allocations: 0 / 447.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002034/0.07234, allocations: 4 kB / 447.6 MB, free: 10.79 MB / 298.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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.086e-05/0.07241, allocations: 99.19 kB / 447.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001263/0.07254, allocations: 23.98 kB / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.07255, allocations: 0 / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.55e-05/0.07259, allocations: 15.98 kB / 447.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.0729, allocations: 19.92 kB / 447.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002603/0.07319, allocations: 203.4 kB / 448 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001006/0.07331, allocations: 0.6848 MB / 448.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.338e-05/0.07334, allocations: 11.44 kB / 448.7 MB, free: 9.672 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.07334, allocations: 0 / 448.7 MB, free: 9.672 MB / 298.7 MB Notification: Performance of Templates: time 0.001563/0.07491, allocations: 0.6834 MB / 449.4 MB, free: 8.988 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches