Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 111.4 kB / 17.86 MB, free: 5.504 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.001259/0.001259, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2006/0.2006, allocations: 44.18 MB / 336.8 MB, free: 3 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 69.05 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09586/0.0971, allocations: 60.83 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002763/0.09992, allocations: 1.665 MB / 470.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007447/0.1007, allocations: 482.8 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.574e-05/0.1008, allocations: 4 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.1009, allocations: 7.922 kB / 471.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.17e-05/0.101, allocations: 11.86 kB / 471.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001653/0.1011, allocations: 31.92 kB / 471.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.1013, allocations: 75.83 kB / 471.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.1014, allocations: 28.22 kB / 471.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.818e-05/0.1014, allocations: 27.86 kB / 471.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.076e-05/0.1015, allocations: 31.84 kB / 471.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.1015, allocations: 4 kB / 471.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.484e-05/0.1016, allocations: 4 kB / 471.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.1016, allocations: 19.86 kB / 471.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.547e-05/0.1017, allocations: 31.8 kB / 471.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.625e-05/0.1017, allocations: 52.14 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1018, allocations: 0 / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1018, allocations: 0 / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1018, allocations: 4 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005232/0.1023, allocations: 391.2 kB / 472 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.1023, allocations: 8.031 kB / 472 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.1024, allocations: 8.844 kB / 472 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.1026, allocations: 188.2 kB / 472.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.1026, allocations: 8.375 kB / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.1026, allocations: 12.31 kB / 472.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.1028, allocations: 73.98 kB / 472.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.1028, allocations: 7.938 kB / 472.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.1028, allocations: 4 kB / 472.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1028, allocations: 4 kB / 472.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.767e-05/0.1029, allocations: 39.91 kB / 472.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005199/0.1034, allocations: 344.5 kB / 472.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.1035, allocations: 54.56 kB / 472.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.1036, allocations: 16.89 kB / 472.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.1036, allocations: 4.031 kB / 472.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/0.1038, allocations: 75.31 kB / 472.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.1038, allocations: 0 / 472.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001907/0.104, allocations: 85.52 kB / 472.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.104, allocations: 55.41 kB / 473 MB, free: 10.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.1041, allocations: 143.7 kB / 473.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.1041, allocations: 29.7 kB / 473.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.067e-05/0.1042, allocations: 108.1 kB / 473.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.079e-05/0.1042, allocations: 15.75 kB / 473.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.102e-05/0.1043, allocations: 29.7 kB / 473.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1044, allocations: 326.8 kB / 473.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.821e-05/0.1044, allocations: 12 kB / 473.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.1045, allocations: 42.56 kB / 473.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.877e-05/0.1046, allocations: 50.52 kB / 473.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1046, allocations: 0 / 473.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000127/0.1047, allocations: 85.52 kB / 473.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.1047, allocations: 4 kB / 473.8 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1048, allocations: 8.062 kB / 473.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1048, allocations: 11.88 kB / 473.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.22e-05/0.1048, allocations: 8 kB / 473.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.1048, allocations: 0 / 473.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.814e-05/0.1049, allocations: 15.89 kB / 473.9 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.1049, allocations: 4 kB / 473.9 MB, free: 9.887 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 7.951e-05/0.105, allocations: 121.7 kB / 474 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.549e-05/0.105, allocations: 7.906 kB / 474 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.666e-05/0.1051, allocations: 20.66 kB / 474 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1051, allocations: 0 / 474 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1051, allocations: 0 / 474 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.1051, allocations: 0 / 474 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003131/0.1054, allocations: 346.7 kB / 474.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1054, allocations: 3.984 kB / 474.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.806e-05/0.1055, allocations: 11.88 kB / 474.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1055, allocations: 0 / 474.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1055, allocations: 4 kB / 474.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1055, allocations: 0 / 474.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1055, allocations: 4 kB / 474.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.1057, allocations: 191.4 kB / 474.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-05/0.1058, allocations: 85.02 kB / 474.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.1058, allocations: 4.031 kB / 474.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.086e-05/0.1059, allocations: 7.984 kB / 474.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.882e-05/0.106, allocations: 7.984 kB / 474.7 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.106, allocations: 4 kB / 474.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.174e-05/0.1061, allocations: 110 kB / 474.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1061, allocations: 0 / 474.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000231/0.1063, allocations: 15.91 kB / 474.8 MB, free: 8.863 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 8.045e-05/0.1064, allocations: 103.7 kB / 474.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.1065, allocations: 40.53 kB / 474.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1065, allocations: 0 / 474.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.975e-05/0.1066, allocations: 23.94 kB / 474.9 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.1069, allocations: 28.05 kB / 475 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005055/0.1074, allocations: 254.5 kB / 475.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.1077, allocations: 0.7004 MB / 475.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.369e-05/0.1077, allocations: 15.44 kB / 475.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1077, allocations: 0 / 475.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of Templates: time 0.00247/0.1102, allocations: 1.145 MB / 477.1 MB, free: 6.496 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches