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.001289/0.001289, allocations: 174 kB / 16.76 MB, free: 5.051 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.392/1.392, allocations: 205 MB / 222.5 MB, free: 9.066 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.0007369/0.0007368, allocations: 86.38 kB / 270.5 MB, free: 8.668 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.06927/0.06927, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005657/0.0005656, allocations: 12 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09627, allocations: 49.98 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.001788/0.09809, allocations: 1.27 MB / 443 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008841/0.09901, allocations: 499.6 kB / 443.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.712e-05/0.09911, allocations: 4 kB / 443.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.429e-05/0.09917, allocations: 7.922 kB / 443.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.09929, allocations: 7.938 kB / 443.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.09956, allocations: 39.91 kB / 443.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.694e-05/0.09965, allocations: 35.86 kB / 443.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.898e-05/0.09975, allocations: 19.97 kB / 443.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.837e-05/0.09983, allocations: 11.94 kB / 443.6 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.82e-05/0.09989, allocations: 15.92 kB / 443.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.09992, allocations: 0 / 443.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.118e-05/0.09994, allocations: 4 kB / 443.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.931e-05/0.09999, allocations: 7.938 kB / 443.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.135e-05/0.1, allocations: 27.8 kB / 443.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.737e-05/0.1001, allocations: 35.88 kB / 443.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1001, allocations: 0 / 443.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1002, allocations: 0 / 443.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1002, allocations: 0 / 443.7 MB, free: 14.4 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.0003396/0.1005, allocations: 363.5 kB / 444 MB, free: 14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1006, allocations: 8.031 kB / 444 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.1006, allocations: 8.844 kB / 444 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.1008, allocations: 188.8 kB / 444.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.1008, allocations: 384 / 444.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.1008, allocations: 4.375 kB / 444.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.101, allocations: 101.3 kB / 444.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.101, allocations: 0 / 444.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.1011, allocations: 0 / 444.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.1011, allocations: 4 kB / 444.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.1012, allocations: 27.92 kB / 444.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002604/0.1015, allocations: 265.7 kB / 444.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.653e-05/0.1016, allocations: 53.14 kB / 444.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.804e-05/0.1016, allocations: 25.7 kB / 444.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.1017, allocations: 4 kB / 444.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.681e-05/0.1017, allocations: 30.56 kB / 444.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.1017, allocations: 0 / 444.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002775/0.102, allocations: 73.61 kB / 444.8 MB, free: 13.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.102, allocations: 81.11 kB / 444.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.1021, allocations: 139.6 kB / 445 MB, free: 12.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.466e-06/0.1022, allocations: 25.7 kB / 445 MB, free: 12.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.172e-05/0.1022, allocations: 92.33 kB / 445.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.271e-05/0.1022, allocations: 7.984 kB / 445.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.1023, allocations: 9.719 kB / 445.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.1023, allocations: 322.8 kB / 445.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.158e-05/0.1024, allocations: 4 kB / 445.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.137e-05/0.1024, allocations: 25.64 kB / 445.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.822e-05/0.1026, allocations: 37.77 kB / 445.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1026, allocations: 0 / 445.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001588/0.1027, allocations: 61.53 kB / 445.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.1028, allocations: 4 kB / 445.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.1028, allocations: 8.047 kB / 445.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.1028, allocations: 7.984 kB / 445.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.067e-05/0.1029, allocations: 4 kB / 445.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1029, allocations: 0 / 445.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.071e-05/0.103, allocations: 4 kB / 445.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.103, allocations: 0 / 445.6 MB, free: 12.19 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.6e-05/0.103, allocations: 122.6 kB / 445.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.1031, allocations: 37.61 kB / 445.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/0.1032, allocations: 19.86 kB / 445.8 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1032, allocations: 7.922 kB / 445.8 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1032, allocations: 0 / 445.8 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1032, allocations: 0 / 445.8 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001772/0.1034, allocations: 173.6 kB / 446 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1034, allocations: 0 / 446 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.846e-05/0.1035, allocations: 7.938 kB / 446 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1035, allocations: 0 / 446 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.1035, allocations: 4 kB / 446 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1035, allocations: 0 / 446 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1035, allocations: 7.938 kB / 446 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001706/0.1037, allocations: 164.3 kB / 446.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.82e-05/0.1038, allocations: 89 kB / 446.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.1038, allocations: 0 / 446.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.1039, allocations: 8.031 kB / 446.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.54e-05/0.1039, allocations: 3.938 kB / 446.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.104, allocations: 0 / 446.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.654e-05/0.104, allocations: 109.9 kB / 446.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.104, allocations: 0 / 446.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003748/0.1044, allocations: 4 kB / 446.4 MB, free: 11.34 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 (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.274e-05/0.1045, allocations: 99.25 kB / 446.5 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1047, allocations: 23.98 kB / 446.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1047, allocations: 0 / 446.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.037e-05/0.1047, allocations: 19.92 kB / 446.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.1052, allocations: 19.97 kB / 446.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003225/0.1055, allocations: 206.9 kB / 446.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.1057, allocations: 0.6848 MB / 447.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.785e-05/0.1057, allocations: 11.44 kB / 447.4 MB, free: 10.22 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.1057, allocations: 0 / 447.4 MB, free: 10.22 MB / 298.7 MB Notification: Performance of Templates: time 0.001883/0.1076, allocations: 0.6676 MB / 448.1 MB, free: 9.551 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