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.001466/0.001466, allocations: 110 kB / 19.69 MB, free: 2.203 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.002443/0.002443, allocations: 219.3 kB / 23 MB, free: 5.043 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.463/1.463, allocations: 207.6 MB / 233.8 MB, free: 9.98 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.214/0.214, allocations: 44.24 MB / 330.3 MB, free: 9.609 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="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.002172/0.002172, allocations: 75.89 kB / 467.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1096, allocations: 61.03 MB / 0.5161 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002091/0.1117, allocations: 0.8433 MB / 0.517 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002181/0.1119, allocations: 47.81 kB / 0.517 GB, free: 6.465 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.309e-05/0.1119, allocations: 4 kB / 0.517 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.1121, allocations: 7.875 kB / 0.517 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.312e-05/0.1121, allocations: 3.984 kB / 0.517 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.1122, allocations: 19.92 kB / 0.517 GB, free: 6.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001185/0.1123, allocations: 43.86 kB / 0.5171 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.957e-05/0.1124, allocations: 15.97 kB / 0.5171 GB, free: 6.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.366e-05/0.1125, allocations: 15.94 kB / 0.5171 GB, free: 6.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.879e-05/0.1125, allocations: 15.92 kB / 0.5171 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.1125, allocations: 4 kB / 0.5171 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.518e-06/0.1125, allocations: 0 / 0.5171 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.423e-05/0.1126, allocations: 11.94 kB / 0.5171 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.43e-05/0.1126, allocations: 15.92 kB / 0.5172 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.1127, allocations: 35.83 kB / 0.5172 GB, free: 6.273 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1127, allocations: 0 / 0.5172 GB, free: 6.273 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1127, allocations: 0 / 0.5172 GB, free: 6.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1127, allocations: 0 / 0.5172 GB, free: 6.273 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.0004548/0.1132, allocations: 287 kB / 0.5175 GB, free: 5.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1132, allocations: 12.03 kB / 0.5175 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.817e-05/0.1133, allocations: 38.69 kB / 0.5175 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.1133, allocations: 8.891 kB / 0.5175 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.1135, allocations: 122.5 kB / 0.5176 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.415e-06/0.1135, allocations: 4.375 kB / 0.5176 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.1135, allocations: 4.375 kB / 0.5176 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.1136, allocations: 54.23 kB / 0.5177 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1136, allocations: 7.938 kB / 0.5177 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.834e-06/0.1136, allocations: 0 / 0.5177 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1136, allocations: 0 / 0.5177 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.83e-05/0.1137, allocations: 12 kB / 0.5177 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000464/0.1141, allocations: 263.8 kB / 0.518 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.127e-05/0.1142, allocations: 26.58 kB / 0.518 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.264e-05/0.1142, allocations: 4.859 kB / 0.518 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.71e-06/0.1142, allocations: 4 kB / 0.518 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.076e-05/0.1143, allocations: 55.41 kB / 0.5181 GB, free: 5.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1143, allocations: 0 / 0.5181 GB, free: 5.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001316/0.1144, allocations: 53.61 kB / 0.5181 GB, free: 5.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.1145, allocations: 55.41 kB / 0.5182 GB, free: 5.121 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.773e-05/0.1146, allocations: 113.8 kB / 0.5183 GB, free: 5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.1146, allocations: 29.69 kB / 0.5183 GB, free: 4.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.1146, allocations: 100 kB / 0.5184 GB, free: 4.863 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.1147, allocations: 11.89 kB / 0.5184 GB, free: 4.852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.1147, allocations: 17.72 kB / 0.5184 GB, free: 4.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1148, allocations: 318.8 kB / 0.5187 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.871e-05/0.1148, allocations: 8 kB / 0.5187 GB, free: 4.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.581e-05/0.1149, allocations: 17.72 kB / 0.5187 GB, free: 4.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.304e-05/0.1149, allocations: 33.7 kB / 0.5188 GB, free: 4.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1149, allocations: 0 / 0.5188 GB, free: 4.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.846e-05/0.115, allocations: 49.59 kB / 0.5188 GB, free: 4.383 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.115, allocations: 11.98 kB / 0.5188 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.115, allocations: 0 / 0.5188 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.115, allocations: 0 / 0.5188 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.181e-05/0.115, allocations: 4.375 kB / 0.5188 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.1151, allocations: 0 / 0.5188 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.35e-05/0.1151, allocations: 7.938 kB / 0.5188 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-06/0.1151, allocations: 0 / 0.5188 GB, free: 4.359 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 7.829e-05/0.1152, allocations: 121.8 kB / 0.519 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.1152, allocations: 0 / 0.519 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.596e-05/0.1152, allocations: 19.92 kB / 0.519 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1152, allocations: 0 / 0.519 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1152, allocations: 0 / 0.519 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1152, allocations: 3.938 kB / 0.519 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.1155, allocations: 265.7 kB / 0.5192 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1155, allocations: 0 / 0.5192 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.424e-05/0.1156, allocations: 11.98 kB / 0.5193 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1156, allocations: 4 kB / 0.5193 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.1156, allocations: 3.938 kB / 0.5193 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1156, allocations: 0 / 0.5193 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1156, allocations: 3.938 kB / 0.5193 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.1157, allocations: 143.5 kB / 0.5194 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.329e-05/0.1157, allocations: 7.984 kB / 0.5194 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.1158, allocations: 8.297 kB / 0.5194 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.485e-05/0.1158, allocations: 4.062 kB / 0.5194 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.687e-05/0.1158, allocations: 3.984 kB / 0.5194 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.1158, allocations: 8 kB / 0.5194 GB, free: 3.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.63e-05/0.1159, allocations: 91.27 kB / 0.5195 GB, free: 3.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1159, allocations: 0 / 0.5195 GB, free: 3.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002112/0.1161, allocations: 4 kB / 0.5195 GB, free: 3.586 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.0004002/0.1165, allocations: 0.6812 MB / 0.5202 GB, free: 2.879 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.434e-05/0.1166, allocations: 23.92 kB / 0.5202 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1166, allocations: 0 / 0.5202 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.133e-05/0.1166, allocations: 15.94 kB / 0.5202 GB, free: 2.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.1169, allocations: 11.92 kB / 0.5202 GB, free: 2.828 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.1181, allocations: 1.295 MB / 0.5215 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.1184, allocations: 0.6962 MB / 0.5222 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.701e-05/0.1184, allocations: 0 / 0.5222 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.232e-05/0.1185, allocations: 15.44 kB / 0.5222 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1185, allocations: 0 / 0.5222 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.1465, allocations: 1.704 MB / 0.5239 GB, free: 15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/10.96, allocations: 4 kB / 0.5239 GB, free: 15 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.822787281824276]