Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008074/0.0008075, allocations: 95.25 kB / 18 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001026, allocations: 200.8 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.7 MB / 247.5 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002601/0.0002601, allocations: 4 kB / 308.4 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.0963, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002012/0.09835, allocations: 1.27 MB / 361.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004166/0.0988, allocations: 143.5 kB / 361.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.09893, allocations: 0 / 361.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.053e-05/0.09898, allocations: 3.938 kB / 361.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.09913, allocations: 0 / 361.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.09942, allocations: 43.84 kB / 361.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.09953, allocations: 35.86 kB / 361.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.09965, allocations: 19.95 kB / 361.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.742e-05/0.0997, allocations: 11.94 kB / 361.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.598e-05/0.09975, allocations: 7.938 kB / 361.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.09977, allocations: 0 / 361.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.229e-05/0.09979, allocations: 4 kB / 361.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.807e-05/0.09985, allocations: 15.92 kB / 361.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.383e-05/0.09991, allocations: 45.52 kB / 361.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.636e-05/0.1, allocations: 35.86 kB / 361.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1, allocations: 0 / 361.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1, allocations: 0 / 361.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1, allocations: 0 / 361.5 MB, free: 11.65 MB / 302.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.0004533/0.1005, allocations: 359.6 kB / 361.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1005, allocations: 12.03 kB / 361.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.929e-05/0.1006, allocations: 8.844 kB / 361.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.1008, allocations: 188.1 kB / 362.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.1008, allocations: 8.375 kB / 362.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.1008, allocations: 4.375 kB / 362.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.1011, allocations: 109.6 kB / 362.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.1011, allocations: 4.188 kB / 362.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1012, allocations: 7.938 kB / 362.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1012, allocations: 0 / 362.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.942e-05/0.1013, allocations: 31.91 kB / 362.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003248/0.1016, allocations: 253.8 kB / 362.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.1018, allocations: 142.2 kB / 362.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.92e-05/0.1019, allocations: 29.77 kB / 362.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.1019, allocations: 0 / 362.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.102, allocations: 50.48 kB / 362.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.91e-07/0.102, allocations: 0 / 362.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002595/0.1022, allocations: 81.52 kB / 362.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.1023, allocations: 77.11 kB / 362.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.1024, allocations: 137.1 kB / 363 MB, free: 9.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.1024, allocations: 25.7 kB / 363 MB, free: 9.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.1025, allocations: 88.27 kB / 363.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.1025, allocations: 11.84 kB / 363.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.1025, allocations: 13.7 kB / 363.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1027, allocations: 318.8 kB / 363.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.497e-05/0.1027, allocations: 11.98 kB / 363.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.831e-05/0.1028, allocations: 35.44 kB / 363.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.377e-05/0.1029, allocations: 47.36 kB / 363.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1029, allocations: 4 kB / 363.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001424/0.103, allocations: 73.55 kB / 363.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1031, allocations: 7.125 kB / 363.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1031, allocations: 4 kB / 363.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1031, allocations: 3.938 kB / 363.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.153e-05/0.1032, allocations: 8.281 kB / 363.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.1032, allocations: 0 / 363.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.098e-05/0.1032, allocations: 12.11 kB / 363.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.1032, allocations: 4 kB / 363.7 MB, free: 9.223 MB / 302.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 8.878e-05/0.1033, allocations: 125.7 kB / 363.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.003e-05/0.1034, allocations: 53.58 kB / 363.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.1035, allocations: 12.25 kB / 363.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1035, allocations: 0 / 363.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1035, allocations: 0 / 363.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1035, allocations: 0 / 363.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.1037, allocations: 173.6 kB / 364 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1037, allocations: 8 kB / 364 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.069e-05/0.1037, allocations: 11.98 kB / 364 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1037, allocations: 0 / 364 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.1038, allocations: 0 / 364 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1038, allocations: 0 / 364 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1038, allocations: 7.938 kB / 364.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.104, allocations: 176.2 kB / 364.2 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.524e-05/0.104, allocations: 96.94 kB / 364.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.104, allocations: 0 / 364.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.791e-05/0.1041, allocations: 4 kB / 364.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.1041, allocations: 0 / 364.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.1041, allocations: 4 kB / 364.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.238e-05/0.1042, allocations: 107.2 kB / 364.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1042, allocations: 0 / 364.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.1045, allocations: 4 kB / 364.4 MB, free: 8.344 MB / 302.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.0001246/0.1046, allocations: 99.25 kB / 364.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001396/0.1047, allocations: 35.92 kB / 364.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1048, allocations: 0 / 364.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.203e-05/0.1048, allocations: 12.23 kB / 364.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.1053, allocations: 34.53 kB / 364.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004604/0.1057, allocations: 190.5 kB / 364.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.1061, allocations: 0.6926 MB / 365.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.384e-05/0.1062, allocations: 7.438 kB / 365.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1062, allocations: 4 kB / 365.5 MB, free: 7.207 MB / 302.1 MB Notification: Performance of Templates: time 0.002481/0.1087, allocations: 0.6692 MB / 366.2 MB, free: 6.539 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches