Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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.002288/0.002288, allocations: 109 kB / 20.48 MB, free: 1.492 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.002914/0.002914, allocations: 215.8 kB / 23.79 MB, free: 4.707 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.497/1.497, allocations: 207.6 MB / 234.6 MB, free: 9.988 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.2448/0.2448, allocations: 44.24 MB / 331.1 MB, free: 9.531 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",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.002518/0.002518, allocations: 78.5 kB / 468.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1301, allocations: 61.04 MB / 0.5169 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003866/0.134, allocations: 1.648 MB / 0.5185 GB, free: 5.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.1352, allocations: 0.6098 MB / 0.5191 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.1353, allocations: 3.938 kB / 0.5191 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1354, allocations: 11.88 kB / 0.5191 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.408e-05/0.1355, allocations: 15.86 kB / 0.5191 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004185/0.1359, allocations: 99.77 kB / 0.5192 GB, free: 4.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.1361, allocations: 111.8 kB / 0.5193 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.1362, allocations: 23.97 kB / 0.5194 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.1363, allocations: 55.77 kB / 0.5194 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.1365, allocations: 43.83 kB / 0.5195 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.1365, allocations: 8 kB / 0.5195 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.777e-05/0.1365, allocations: 8 kB / 0.5195 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.666e-05/0.1365, allocations: 15.92 kB / 0.5195 GB, free: 4.688 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.327e-05/0.1366, allocations: 51.67 kB / 0.5195 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.1368, allocations: 95.56 kB / 0.5196 GB, free: 4.543 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1368, allocations: 0 / 0.5196 GB, free: 4.543 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1368, allocations: 0 / 0.5196 GB, free: 4.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.1368, allocations: 0 / 0.5196 GB, free: 4.543 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006925/0.1375, allocations: 342.8 kB / 0.52 GB, free: 4.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.1375, allocations: 12.03 kB / 0.52 GB, free: 4.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.565e-05/0.1375, allocations: 4.188 kB / 0.52 GB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.248e-05/0.1376, allocations: 42.73 kB / 0.52 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.1376, allocations: 8.891 kB / 0.52 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.1379, allocations: 138.4 kB / 0.5202 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.1379, allocations: 8.375 kB / 0.5202 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.777e-05/0.138, allocations: 12.31 kB / 0.5202 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.1383, allocations: 105.5 kB / 0.5203 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1383, allocations: 0 / 0.5203 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.1383, allocations: 8 kB / 0.5203 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.1383, allocations: 0 / 0.5203 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.1385, allocations: 55.95 kB / 0.5203 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007/0.1392, allocations: 355.6 kB / 0.5207 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.1395, allocations: 98.52 kB / 0.5208 GB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1396, allocations: 36.92 kB / 0.5208 GB, free: 3.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.1397, allocations: 0 / 0.5208 GB, free: 3.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.1399, allocations: 107.3 kB / 0.5209 GB, free: 3.098 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.1399, allocations: 0 / 0.5209 GB, free: 3.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004987/0.1404, allocations: 141.5 kB / 0.521 GB, free: 2.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.1405, allocations: 55.39 kB / 0.5211 GB, free: 2.887 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.1406, allocations: 153.8 kB / 0.5212 GB, free: 2.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.1406, allocations: 29.64 kB / 0.5213 GB, free: 2.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.1407, allocations: 104.1 kB / 0.5214 GB, free: 2.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.1407, allocations: 11.86 kB / 0.5214 GB, free: 2.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/0.1408, allocations: 29.7 kB / 0.5214 GB, free: 2.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.141, allocations: 326.8 kB / 0.5217 GB, free: 2.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1411, allocations: 35.98 kB / 0.5218 GB, free: 2.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.1412, allocations: 49.69 kB / 0.5218 GB, free: 2.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000234/0.1414, allocations: 81.8 kB / 0.5219 GB, free: 2.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1414, allocations: 3.938 kB / 0.5219 GB, free: 2.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003051/0.1418, allocations: 121.5 kB / 0.522 GB, free: 1.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1418, allocations: 4 kB / 0.522 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.1418, allocations: 0 / 0.522 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1418, allocations: 4 kB / 0.522 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.1419, allocations: 20.02 kB / 0.522 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1419, allocations: 0 / 0.522 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.961e-05/0.142, allocations: 20.02 kB / 0.522 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.142, allocations: 4 kB / 0.522 GB, free: 1.855 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: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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 0.000108/0.1421, allocations: 117.8 kB / 0.5222 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.1421, allocations: 15.88 kB / 0.5222 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.814e-05/0.1422, allocations: 20.7 kB / 0.5222 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1422, allocations: 3.938 kB / 0.5222 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1422, allocations: 0 / 0.5222 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1422, allocations: 0 / 0.5222 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006054/0.1428, allocations: 357.5 kB / 0.5225 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.1428, allocations: 7.984 kB / 0.5225 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.376e-05/0.1429, allocations: 16 kB / 0.5226 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1429, allocations: 0 / 0.5226 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.1429, allocations: 4 kB / 0.5226 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1429, allocations: 3.938 kB / 0.5226 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1429, allocations: 3.984 kB / 0.5226 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004923/0.1434, allocations: 255.3 kB / 0.5228 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.002e-05/0.1434, allocations: 7.984 kB / 0.5228 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.1434, allocations: 3.938 kB / 0.5228 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.1436, allocations: 19.97 kB / 0.5228 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.1436, allocations: 12.05 kB / 0.5229 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-06/0.1436, allocations: 8 kB / 0.5229 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.57e-05/0.1437, allocations: 112 kB / 0.523 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1437, allocations: 96 / 0.523 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.144, allocations: 23.88 kB / 0.523 GB, free: 0.8047 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.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 0.0007865/0.1448, allocations: 0.7749 MB / 0.5238 GB, free: 4 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000319/0.1451, allocations: 80.03 kB / 0.5238 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1451, allocations: 4 kB / 0.5238 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.1452, allocations: 40.52 kB / 0.5239 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.1456, allocations: 17.08 kB / 0.5239 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.1478, allocations: 1.67 MB / 0.5255 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.1481, allocations: 0.6963 MB / 0.5262 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.553e-05/0.1482, allocations: 8.5 kB / 0.5262 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.169e-05/0.1482, allocations: 27.42 kB / 0.5262 GB, free: 13.35 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1482, allocations: 0 / 0.5262 GB, free: 13.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.1732, allocations: 2.831 MB / 0.529 GB, free: 10.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.48, allocations: 15.89 kB / 0.529 GB, free: 10.5 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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.957345322007313]