Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 100.3 kB / 19.69 MB, free: 1.805 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 214.7 kB / 22.99 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 207.7 MB / 233.8 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2328/0.2328, allocations: 44.25 MB / 330.3 MB, free: 9.328 MB / 270.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002612/0.002612, allocations: 71.89 kB / 467.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1494, allocations: 61.04 MB / 0.5161 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.003327/0.1527, allocations: 0.8237 MB / 0.5169 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003492/0.153, allocations: 47.83 kB / 0.517 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.1532, allocations: 3.938 kB / 0.517 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.1533, allocations: 7.938 kB / 0.517 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.872e-05/0.1533, allocations: 7.922 kB / 0.517 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.1535, allocations: 19.97 kB / 0.517 GB, free: 6.289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.1537, allocations: 35.92 kB / 0.5171 GB, free: 6.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.1538, allocations: 11.98 kB / 0.5171 GB, free: 6.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.579e-05/0.1538, allocations: 15.94 kB / 0.5171 GB, free: 6.227 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.401e-05/0.1539, allocations: 11.92 kB / 0.5171 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.1539, allocations: 4 kB / 0.5171 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.1539, allocations: 4 kB / 0.5171 GB, free: 6.207 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.044e-05/0.154, allocations: 11.92 kB / 0.5171 GB, free: 6.195 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.956e-05/0.154, allocations: 11.94 kB / 0.5171 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.1542, allocations: 35.83 kB / 0.5172 GB, free: 6.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.974e-06/0.1542, allocations: 4 kB / 0.5172 GB, free: 6.145 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1542, allocations: 0 / 0.5172 GB, free: 6.145 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1542, allocations: 3.938 kB / 0.5172 GB, free: 6.141 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005987/0.1548, allocations: 287 kB / 0.5174 GB, free: 5.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.1548, allocations: 8.031 kB / 0.5175 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.376e-05/0.1549, allocations: 42.75 kB / 0.5175 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.1549, allocations: 4.891 kB / 0.5175 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.1552, allocations: 118.5 kB / 0.5176 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.1553, allocations: 8.375 kB / 0.5176 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.1553, allocations: 4.359 kB / 0.5176 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.1554, allocations: 50.25 kB / 0.5177 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1555, allocations: 3.938 kB / 0.5177 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.1555, allocations: 7.938 kB / 0.5177 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1555, allocations: 4 kB / 0.5177 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.339e-05/0.1555, allocations: 12 kB / 0.5177 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.1562, allocations: 255.8 kB / 0.5179 GB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.204e-05/0.1562, allocations: 22.52 kB / 0.518 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.56e-05/0.1563, allocations: 12.92 kB / 0.518 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.1563, allocations: 0 / 0.518 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/0.1564, allocations: 51.41 kB / 0.518 GB, free: 5.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1564, allocations: 0 / 0.518 GB, free: 5.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001622/0.1565, allocations: 57.61 kB / 0.5181 GB, free: 5.062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.1566, allocations: 55.34 kB / 0.5181 GB, free: 4.996 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.1567, allocations: 117.8 kB / 0.5182 GB, free: 4.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.1567, allocations: 25.7 kB / 0.5183 GB, free: 4.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.1568, allocations: 104 kB / 0.5184 GB, free: 4.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.1568, allocations: 7.938 kB / 0.5184 GB, free: 4.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.559e-05/0.1569, allocations: 17.72 kB / 0.5184 GB, free: 4.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.157, allocations: 326.8 kB / 0.5187 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.581e-05/0.1571, allocations: 0 / 0.5187 GB, free: 4.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.158e-05/0.1571, allocations: 21.72 kB / 0.5187 GB, free: 4.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.785e-05/0.1571, allocations: 29.66 kB / 0.5188 GB, free: 4.312 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1571, allocations: 0 / 0.5188 GB, free: 4.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.128e-05/0.1572, allocations: 57.64 kB / 0.5188 GB, free: 4.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1572, allocations: 4 kB / 0.5188 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1572, allocations: 0 / 0.5188 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.1573, allocations: 4 kB / 0.5188 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.482e-05/0.1573, allocations: 3.938 kB / 0.5188 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.1573, allocations: 7.984 kB / 0.5188 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.96e-05/0.1573, allocations: 3.938 kB / 0.5188 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.1573, allocations: 0 / 0.5188 GB, free: 4.227 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * 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 9.847e-05/0.1574, allocations: 117.9 kB / 0.5189 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.1574, allocations: 4 kB / 0.5189 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.498e-05/0.1575, allocations: 4 kB / 0.519 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1575, allocations: 0 / 0.519 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1575, allocations: 0 / 0.519 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1575, allocations: 7.938 kB / 0.519 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003197/0.1578, allocations: 265.6 kB / 0.5192 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1578, allocations: 0 / 0.5192 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.703e-05/0.1578, allocations: 7.984 kB / 0.5192 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1578, allocations: 0 / 0.5192 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1579, allocations: 7.938 kB / 0.5192 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1579, allocations: 4 kB / 0.5192 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1579, allocations: 0 / 0.5192 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001649/0.158, allocations: 147.9 kB / 0.5194 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.501e-05/0.158, allocations: 7.953 kB / 0.5194 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.1581, allocations: 7.969 kB / 0.5194 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.995e-05/0.1581, allocations: 3.984 kB / 0.5194 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.1582, allocations: 4.359 kB / 0.5194 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.1582, allocations: 4 kB / 0.5194 GB, free: 3.562 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.855e-05/0.1582, allocations: 95.2 kB / 0.5195 GB, free: 3.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1582, allocations: 3.938 kB / 0.5195 GB, free: 3.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000223/0.1585, allocations: 8.062 kB / 0.5195 GB, free: 3.457 MB / 398.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005794/0.159, allocations: 0.6812 MB / 0.5202 GB, free: 2.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001082/0.1592, allocations: 23.86 kB / 0.5202 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1592, allocations: 0 / 0.5202 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.041e-05/0.1592, allocations: 8 kB / 0.5202 GB, free: 2.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.1595, allocations: 11.98 kB / 0.5202 GB, free: 2.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.161, allocations: 1.294 MB / 0.5215 GB, free: 1.328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.579e-05/0.1611, allocations: 75.45 kB / 0.5215 GB, free: 1.234 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.225e-05/0.1611, allocations: 7.938 kB / 0.5216 GB, free: 1.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.1611, allocations: 15.44 kB / 0.5216 GB, free: 1.211 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1611, allocations: 0 / 0.5216 GB, free: 1.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03312/0.1942, allocations: 2.138 MB / 0.5237 GB, free: 15.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.62, allocations: 3.938 kB / 0.5237 GB, free: 15.07 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.708110563922673]