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.001767/0.001767, allocations: 109 kB / 20.48 MB, free: 1.477 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.001964/0.001964, allocations: 207 kB / 23.78 MB, free: 4.688 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.521/1.521, allocations: 207.6 MB / 234.5 MB, free: 9.984 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.24/0.24, allocations: 44.24 MB / 331.1 MB, free: 9.516 MB / 270.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",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.002194/0.002194, allocations: 70.56 kB / 468.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1245, allocations: 61.03 MB / 0.5169 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002315/0.1268, allocations: 0.8329 MB / 0.5177 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002642/0.1271, allocations: 55.81 kB / 0.5178 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.11e-05/0.1272, allocations: 0 / 0.5178 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.1273, allocations: 7.922 kB / 0.5178 GB, free: 6.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.275e-05/0.1273, allocations: 3.938 kB / 0.5178 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.1275, allocations: 15.98 kB / 0.5178 GB, free: 6.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.1276, allocations: 39.86 kB / 0.5178 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1277, allocations: 15.97 kB / 0.5179 GB, free: 6.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.605e-05/0.1277, allocations: 11.94 kB / 0.5179 GB, free: 6.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.1278, allocations: 23.86 kB / 0.5179 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.1278, allocations: 4 kB / 0.5179 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.28e-05/0.1278, allocations: 4 kB / 0.5179 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.295e-05/0.1278, allocations: 7.938 kB / 0.5179 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.865e-05/0.1279, allocations: 15.92 kB / 0.5179 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.128, allocations: 39.77 kB / 0.518 GB, free: 6.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.128, allocations: 0 / 0.518 GB, free: 6.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.128, allocations: 0 / 0.518 GB, free: 6.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.128, allocations: 4 kB / 0.518 GB, free: 6.262 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.0004664/0.1285, allocations: 287 kB / 0.5182 GB, free: 5.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1285, allocations: 8.031 kB / 0.5182 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.614e-05/0.1285, allocations: 4.188 kB / 0.5182 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.423e-05/0.1286, allocations: 38.73 kB / 0.5183 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.53e-05/0.1286, allocations: 4.891 kB / 0.5183 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.1288, allocations: 122.5 kB / 0.5184 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1288, allocations: 4.375 kB / 0.5184 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.1288, allocations: 384 / 0.5184 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.129, allocations: 65.92 kB / 0.5185 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.129, allocations: 0 / 0.5185 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.129, allocations: 7.984 kB / 0.5185 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.129, allocations: 4 kB / 0.5185 GB, free: 5.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.152e-05/0.129, allocations: 12 kB / 0.5185 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004761/0.1295, allocations: 259.8 kB / 0.5187 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.749e-05/0.1296, allocations: 22.58 kB / 0.5188 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.903e-05/0.1296, allocations: 12.92 kB / 0.5188 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-06/0.1296, allocations: 0 / 0.5188 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.42e-05/0.1297, allocations: 51.41 kB / 0.5188 GB, free: 5.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.1297, allocations: 0 / 0.5188 GB, free: 5.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001424/0.1298, allocations: 57.56 kB / 0.5189 GB, free: 5.172 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.1299, allocations: 51.41 kB / 0.5189 GB, free: 5.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.13, allocations: 125.8 kB / 0.519 GB, free: 4.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.13, allocations: 29.7 kB / 0.5191 GB, free: 4.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.579e-05/0.1301, allocations: 92.41 kB / 0.5192 GB, free: 4.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.1301, allocations: 7.953 kB / 0.5192 GB, free: 4.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.1301, allocations: 17.72 kB / 0.5192 GB, free: 4.816 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1303, allocations: 314.8 kB / 0.5195 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.271e-05/0.1303, allocations: 11.94 kB / 0.5195 GB, free: 4.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.816e-05/0.1303, allocations: 21.7 kB / 0.5195 GB, free: 4.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.776e-05/0.1304, allocations: 29.66 kB / 0.5195 GB, free: 4.426 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1304, allocations: 0 / 0.5195 GB, free: 4.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001015/0.1305, allocations: 57.58 kB / 0.5196 GB, free: 4.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.1305, allocations: 4 kB / 0.5196 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.1305, allocations: 4 kB / 0.5196 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.1305, allocations: 0 / 0.5196 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.639e-05/0.1306, allocations: 4 kB / 0.5196 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1306, allocations: 0 / 0.5196 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.18e-05/0.1306, allocations: 7.938 kB / 0.5196 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.1306, allocations: 8.031 kB / 0.5196 GB, free: 4.336 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 8.77e-05/0.1307, allocations: 105.8 kB / 0.5197 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.497e-06/0.1307, allocations: 4 kB / 0.5197 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.1307, allocations: 11.98 kB / 0.5197 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.1307, allocations: 4 kB / 0.5197 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1307, allocations: 0 / 0.5197 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1307, allocations: 3.938 kB / 0.5198 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.1311, allocations: 269.9 kB / 0.52 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.1311, allocations: 11.98 kB / 0.52 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.977e-05/0.1311, allocations: 0 / 0.52 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1311, allocations: 0 / 0.52 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.1311, allocations: 3.938 kB / 0.52 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1311, allocations: 4 kB / 0.52 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1311, allocations: 4 kB / 0.52 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.1313, allocations: 147.5 kB / 0.5202 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.241e-05/0.1313, allocations: 3.953 kB / 0.5202 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.1313, allocations: 15.94 kB / 0.5202 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.846e-05/0.1314, allocations: 8.016 kB / 0.5202 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/0.1314, allocations: 0 / 0.5202 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.1314, allocations: 0 / 0.5202 GB, free: 3.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.233e-05/0.1315, allocations: 95.27 kB / 0.5203 GB, free: 3.574 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1315, allocations: 0 / 0.5203 GB, free: 3.574 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.1317, allocations: 4.281 kB / 0.5203 GB, free: 3.57 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.0004447/0.1322, allocations: 0.685 MB / 0.521 GB, free: 2.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.779e-05/0.1322, allocations: 23.92 kB / 0.521 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.1322, allocations: 0 / 0.521 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.759e-05/0.1323, allocations: 4 kB / 0.521 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.1325, allocations: 11.98 kB / 0.521 GB, free: 2.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.1338, allocations: 1.303 MB / 0.5223 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.1342, allocations: 0.6895 MB / 0.5229 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.028e-05/0.1342, allocations: 0 / 0.5229 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.1342, allocations: 19.44 kB / 0.523 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1342, allocations: 0 / 0.523 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.1564, allocations: 1.725 MB / 0.5247 GB, free: 14.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.62, allocations: 4.062 kB / 0.5247 GB, free: 14.97 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.713910086022224]