Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000862/0.000862, allocations: 88.33 kB / 20.67 MB, free: 3.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009067/0.0009067, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9507/0.9507, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2718/0.2718, allocations: 34.24 MB / 294.8 MB, free: 0.6953 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.811e-05/2.992e-05, allocations: 2.281 kB / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.2077/0.2077, allocations: 1.61 MB / 443.8 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00091/0.2086, allocations: 0.5639 MB / 444.3 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.416e-05/0.2087, allocations: 4.375 kB / 444.3 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.2088, allocations: 13.59 kB / 444.3 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.67e-05/0.2089, allocations: 15.8 kB / 444.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.2092, allocations: 88.91 kB / 444.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.2093, allocations: 121.6 kB / 444.6 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.2095, allocations: 21.25 kB / 444.6 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.23e-05/0.2095, allocations: 62.81 kB / 444.6 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.106e-05/0.2096, allocations: 30.47 kB / 444.7 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.2096, allocations: 9.5 kB / 444.7 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.534e-05/0.2097, allocations: 8.656 kB / 444.7 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.581e-05/0.2097, allocations: 20.69 kB / 444.7 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.777e-05/0.2097, allocations: 29.14 kB / 444.7 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.2099, allocations: 93.75 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2099, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2099, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.2099, allocations: 2.875 kB / 444.8 MB, free: 43.12 MB / 410.7 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.0005042/0.2104, allocations: 348 kB / 445.2 MB, free: 42.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2104, allocations: 11.81 kB / 445.2 MB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.101e-05/0.2105, allocations: 37.7 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.255e-05/0.2105, allocations: 15.77 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.2107, allocations: 151.3 kB / 445.4 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.2107, allocations: 11.03 kB / 445.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.2108, allocations: 18.06 kB / 445.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.211, allocations: 96.02 kB / 445.5 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.211, allocations: 3.156 kB / 445.5 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.211, allocations: 4.125 kB / 445.5 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.211, allocations: 0 / 445.5 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.887e-05/0.2111, allocations: 51.89 kB / 445.6 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004539/0.2115, allocations: 341.7 kB / 445.9 MB, free: 42.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.2117, allocations: 102.3 kB / 446 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.292e-05/0.2118, allocations: 32.09 kB / 446 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.2118, allocations: 0 / 446 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.212, allocations: 102.8 kB / 446.1 MB, free: 42.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.212, allocations: 0 / 446.1 MB, free: 42.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003218/0.2123, allocations: 137.8 kB / 446.3 MB, free: 42.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.2124, allocations: 54.25 kB / 446.3 MB, free: 42.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.288e-05/0.2125, allocations: 154.5 kB / 446.5 MB, free: 42.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.2125, allocations: 29.03 kB / 446.5 MB, free: 42.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.2125, allocations: 107.1 kB / 446.6 MB, free: 41.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/0.2125, allocations: 18.25 kB / 446.6 MB, free: 41.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-05/0.2126, allocations: 19.56 kB / 446.6 MB, free: 41.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.797e-05/0.2126, allocations: 328.2 kB / 447 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.716e-05/0.2127, allocations: 33.78 kB / 447 MB, free: 41.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.399e-05/0.2127, allocations: 53.41 kB / 447 MB, free: 41.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.2129, allocations: 75.92 kB / 447.1 MB, free: 41.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2129, allocations: 0 / 447.1 MB, free: 41.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001684/0.213, allocations: 129 kB / 447.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.2131, allocations: 7.469 kB / 447.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.2131, allocations: 2.812 kB / 447.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.2131, allocations: 3.938 kB / 447.3 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.459e-05/0.2132, allocations: 17.48 kB / 447.3 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2132, allocations: 2.969 kB / 447.3 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.193e-05/0.2132, allocations: 15.77 kB / 447.3 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.2132, allocations: 6.219 kB / 447.3 MB, free: 41.5 MB / 410.7 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 7.917e-05/0.2133, allocations: 128.9 kB / 447.4 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.2133, allocations: 12.59 kB / 447.4 MB, free: 41.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.2134, allocations: 15.78 kB / 447.4 MB, free: 41.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.2134, allocations: 3.938 kB / 447.5 MB, free: 41.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.2134, allocations: 3.938 kB / 447.5 MB, free: 41.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2134, allocations: 0 / 447.5 MB, free: 41.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003608/0.2137, allocations: 352 kB / 447.8 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2137, allocations: 0 / 447.8 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-05/0.2138, allocations: 15.38 kB / 447.8 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.2138, allocations: 1.688 kB / 447.8 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.2138, allocations: 2.656 kB / 447.8 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2138, allocations: 0 / 447.8 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2138, allocations: 7.125 kB / 447.8 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.2141, allocations: 243.4 kB / 448.1 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.497e-05/0.2141, allocations: 18.25 kB / 448.1 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.2141, allocations: 0 / 448.1 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.663e-05/0.2142, allocations: 20.39 kB / 448.1 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.2142, allocations: 11.88 kB / 448.1 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.2142, allocations: 8.594 kB / 448.1 MB, free: 40.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.467e-05/0.2143, allocations: 116 kB / 448.2 MB, free: 40.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2143, allocations: 0 / 448.2 MB, free: 40.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001584/0.2144, allocations: 17.12 kB / 448.3 MB, free: 40.86 MB / 410.7 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.0003518/0.2148, allocations: 0.7751 MB / 449 MB, free: 40.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001799/0.215, allocations: 84.16 kB / 449.1 MB, free: 40.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.215, allocations: 0 / 449.1 MB, free: 40.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.158e-05/0.215, allocations: 42.64 kB / 449.2 MB, free: 40.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.2153, allocations: 30.67 kB / 449.2 MB, free: 40.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.2168, allocations: 1.696 MB / 450.9 MB, free: 38.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.469e-05/0.2168, allocations: 91.84 kB / 451 MB, free: 38.71 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.803e-05/0.2169, allocations: 13.3 kB / 451 MB, free: 38.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.213e-05/0.2169, allocations: 33.69 kB / 451 MB, free: 38.69 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2169, allocations: 0 / 451 MB, free: 38.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.2406, allocations: 3.376 MB / 454.4 MB, free: 37.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.566/6.806, allocations: 7.938 kB / 454.4 MB, free: 37.69 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 8.899867724627256]