Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000914/0.0009141, allocations: 97.38 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009848/0.0009851, allocations: 175.5 kB / 16.57 MB, free: 6.375 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.251/1.251, allocations: 205.4 MB / 222.7 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2895/0.2895, allocations: 43.54 MB / 314.5 MB, free: 8.754 MB / 254.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: Performance of FrontEnd - loaded program: time 0.0004702/0.0004703, allocations: 19.98 kB / 383.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09442, allocations: 58.85 MB / 442.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001383/0.09584, allocations: 1.152 MB / 443.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006101/0.09647, allocations: 440.2 kB / 444.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.539e-05/0.09652, allocations: 0 / 444.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.496e-05/0.09654, allocations: 0 / 444.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.111e-05/0.09659, allocations: 0 / 444.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001345/0.09673, allocations: 15.97 kB / 444.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.832e-05/0.0968, allocations: 31.84 kB / 444.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.335e-05/0.09688, allocations: 4 kB / 444.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.676e-05/0.09697, allocations: 11.98 kB / 444.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.262e-05/0.09704, allocations: 19.91 kB / 444.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.09706, allocations: 4 kB / 444.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.708e-06/0.09707, allocations: 0 / 444.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.09709, allocations: 3.938 kB / 444.4 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.931e-05/0.09712, allocations: 33.7 kB / 444.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 4.934e-05/0.09718, allocations: 15.95 kB / 444.5 MB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.09719, allocations: 0 / 444.5 MB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.09719, allocations: 4 kB / 444.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.055e-06/0.0972, allocations: 0 / 444.5 MB, free: 11.34 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003754/0.09758, allocations: 351.5 kB / 444.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.09762, allocations: 8.031 kB / 444.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.09766, allocations: 11.86 kB / 444.8 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.09777, allocations: 167 kB / 445 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.09779, allocations: 3.984 kB / 445 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-06/0.09781, allocations: 7.938 kB / 445 MB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.09797, allocations: 67.33 kB / 445.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.09799, allocations: 0 / 445.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.09801, allocations: 0 / 445.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.09802, allocations: 4 kB / 445.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.063e-05/0.09811, allocations: 23.94 kB / 445.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003455/0.09847, allocations: 264.9 kB / 445.3 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.745e-05/0.09856, allocations: 34.52 kB / 445.4 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.09858, allocations: 0 / 445.4 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.09861, allocations: 42.62 kB / 445.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.09861, allocations: 0 / 445.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002283/0.09885, allocations: 69.53 kB / 445.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.09889, allocations: 81.11 kB / 445.6 MB, free: 10.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.93e-05/0.09897, allocations: 109.8 kB / 445.7 MB, free: 9.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.09899, allocations: 29.83 kB / 445.7 MB, free: 9.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.148e-05/0.09904, allocations: 92.12 kB / 445.8 MB, free: 9.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.324e-05/0.09906, allocations: 3.906 kB / 445.8 MB, free: 9.789 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-06/0.09907, allocations: 0 / 445.8 MB, free: 9.789 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.95e-05/0.09916, allocations: 310.8 kB / 446.1 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.873e-05/0.09922, allocations: 19.92 kB / 446.1 MB, free: 9.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.089e-05/0.09928, allocations: 33.7 kB / 446.2 MB, free: 9.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.577e-05/0.09933, allocations: 12 kB / 446.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.09934, allocations: 0 / 446.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001253/0.09947, allocations: 61.67 kB / 446.2 MB, free: 9.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.09949, allocations: 4 kB / 446.2 MB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.0995, allocations: 3.938 kB / 446.2 MB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.09952, allocations: 0 / 446.2 MB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.414e-05/0.09958, allocations: 8.031 kB / 446.2 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.0996, allocations: 3.953 kB / 446.2 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.295e-05/0.09967, allocations: 15.98 kB / 446.3 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.09968, allocations: 320 / 446.3 MB, free: 9.305 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.277e-05/0.09976, allocations: 117.8 kB / 446.4 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.09979, allocations: 7.906 kB / 446.4 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.137e-05/0.09982, allocations: 11.52 kB / 446.4 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.09982, allocations: 4 kB / 446.4 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.09983, allocations: 4 kB / 446.4 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.09984, allocations: 7.891 kB / 446.4 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.09999, allocations: 157.7 kB / 446.6 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1, allocations: 0 / 446.6 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.02e-05/0.1, allocations: 4 kB / 446.6 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1001, allocations: 0 / 446.6 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1001, allocations: 8 kB / 446.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1001, allocations: 0 / 446.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1001, allocations: 144 / 446.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.1002, allocations: 163.5 kB / 446.7 MB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.863e-05/0.1003, allocations: 77.11 kB / 446.8 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1003, allocations: 4 kB / 446.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.933e-05/0.1004, allocations: 11.98 kB / 446.8 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.1004, allocations: 11.95 kB / 446.8 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.1004, allocations: 4 kB / 446.8 MB, free: 8.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.1005, allocations: 91.25 kB / 446.9 MB, free: 8.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1005, allocations: 0 / 446.9 MB, free: 8.543 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000218/0.1007, allocations: 11.91 kB / 446.9 MB, free: 8.531 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * 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 8.233e-05/0.1008, allocations: 95.2 kB / 447 MB, free: 8.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001348/0.1009, allocations: 35.98 kB / 447.1 MB, free: 8.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.101, allocations: 0 / 447.1 MB, free: 8.395 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.781e-05/0.101, allocations: 11.98 kB / 447.1 MB, free: 8.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1011, allocations: 8 kB / 447.1 MB, free: 8.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002482/0.1014, allocations: 136.5 kB / 447.2 MB, free: 8.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.1016, allocations: 0.6888 MB / 447.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.695e-05/0.1016, allocations: 3.938 kB / 447.9 MB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.272e-05/0.1017, allocations: 7.438 kB / 447.9 MB, free: 7.488 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1017, allocations: 0 / 447.9 MB, free: 7.488 MB / 382.1 MB Notification: Performance of Templates: time 0.002174/0.1039, allocations: 476.1 kB / 448.4 MB, free: 7.023 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches