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.001294/0.001294, allocations: 118.9 kB / 17.83 MB, free: 5.242 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.001401/0.001401, allocations: 203 kB / 20.79 MB, free: 2.297 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.441/1.441, allocations: 207.6 MB / 231.2 MB, free: 4.082 MB / 174.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.3346/0.3346, allocations: 44.23 MB / 327.3 MB, free: 6.723 MB / 254.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.002252/0.002252, allocations: 71.91 kB / 462.9 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.25, allocations: 61 MB / 0.5116 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002108/0.2521, allocations: 0.8212 MB / 0.5124 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001951/0.2523, allocations: 49.28 kB / 0.5125 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.288e-05/0.2524, allocations: 1.375 kB / 0.5125 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.2525, allocations: 11.92 kB / 0.5125 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.164e-05/0.2525, allocations: 5 kB / 0.5125 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001105/0.2526, allocations: 15.48 kB / 0.5125 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.2527, allocations: 38.98 kB / 0.5125 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.008e-05/0.2528, allocations: 17.16 kB / 0.5126 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.556e-05/0.2529, allocations: 12.56 kB / 0.5126 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.156e-05/0.2529, allocations: 14.67 kB / 0.5126 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.2529, allocations: 8.125 kB / 0.5126 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.2529, allocations: 6.625 kB / 0.5126 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.974e-05/0.253, allocations: 13.3 kB / 0.5126 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.719e-05/0.253, allocations: 15.97 kB / 0.5126 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.2531, allocations: 35.17 kB / 0.5127 GB, free: 12.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2531, allocations: 0 / 0.5127 GB, free: 12.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2531, allocations: 5.125 kB / 0.5127 GB, free: 12.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.988e-06/0.2531, allocations: 0 / 0.5127 GB, free: 12.35 MB / 382.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.0003697/0.2535, allocations: 353.8 kB / 0.513 GB, free: 11.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.2535, allocations: 13.83 kB / 0.513 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.416e-05/0.2535, allocations: 1.406 kB / 0.513 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.928e-05/0.2536, allocations: 35.92 kB / 0.5131 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.749e-05/0.2536, allocations: 12.27 kB / 0.5131 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.2538, allocations: 182.2 kB / 0.5132 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.2538, allocations: 6.375 kB / 0.5132 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.2538, allocations: 7.438 kB / 0.5133 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.2539, allocations: 56.55 kB / 0.5133 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.2539, allocations: 0 / 0.5133 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.2539, allocations: 1.062 kB / 0.5133 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.2539, allocations: 1.125 kB / 0.5133 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.936e-05/0.254, allocations: 20.06 kB / 0.5133 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004872/0.2545, allocations: 294.1 kB / 0.5136 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.736e-05/0.2545, allocations: 23.7 kB / 0.5136 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.669e-05/0.2545, allocations: 15.11 kB / 0.5136 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.2545, allocations: 0 / 0.5136 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.429e-05/0.2546, allocations: 54.06 kB / 0.5137 GB, free: 11.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.2546, allocations: 1.594 kB / 0.5137 GB, free: 11.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001516/0.2548, allocations: 46.47 kB / 0.5137 GB, free: 11.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.2548, allocations: 55.41 kB / 0.5138 GB, free: 11.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.352e-05/0.2549, allocations: 119.6 kB / 0.5139 GB, free: 11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.528e-06/0.2549, allocations: 27.05 kB / 0.5139 GB, free: 10.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.678e-05/0.2549, allocations: 94.67 kB / 0.514 GB, free: 10.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.258e-05/0.2549, allocations: 4.953 kB / 0.514 GB, free: 10.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/0.255, allocations: 17.69 kB / 0.514 GB, free: 10.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.849e-05/0.255, allocations: 320.1 kB / 0.5144 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.759e-05/0.255, allocations: 3.812 kB / 0.5144 GB, free: 10.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.158e-05/0.255, allocations: 26.44 kB / 0.5144 GB, free: 10.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.428e-05/0.2551, allocations: 22.44 kB / 0.5144 GB, free: 10.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2551, allocations: 7.922 kB / 0.5144 GB, free: 10.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.503e-05/0.2552, allocations: 57.03 kB / 0.5145 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.2552, allocations: 4.531 kB / 0.5145 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2552, allocations: 1.156 kB / 0.5145 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2552, allocations: 1.406 kB / 0.5145 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.341e-05/0.2552, allocations: 10.42 kB / 0.5145 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.2552, allocations: 1.188 kB / 0.5145 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.968e-05/0.2553, allocations: 10.44 kB / 0.5145 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.2553, allocations: 1.281 kB / 0.5145 GB, free: 10.41 MB / 382.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 5.45e-05/0.2553, allocations: 116.1 kB / 0.5146 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.2553, allocations: 2.25 kB / 0.5146 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.054e-05/0.2553, allocations: 5.125 kB / 0.5146 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2554, allocations: 1.516 kB / 0.5146 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2554, allocations: 3.984 kB / 0.5146 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.2554, allocations: 9.031 kB / 0.5146 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.2556, allocations: 299.8 kB / 0.5149 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2556, allocations: 1.188 kB / 0.5149 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.051e-05/0.2556, allocations: 2.062 kB / 0.5149 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2556, allocations: 3.984 kB / 0.5149 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.2556, allocations: 5 kB / 0.5149 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2556, allocations: 0 / 0.5149 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2556, allocations: 1.219 kB / 0.5149 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.2557, allocations: 152.7 kB / 0.5151 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.103e-05/0.2558, allocations: 85.06 kB / 0.5152 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.2558, allocations: 5.219 kB / 0.5152 GB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.589e-05/0.2558, allocations: 1.031 kB / 0.5152 GB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/0.2559, allocations: 5.109 kB / 0.5152 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.2559, allocations: 6.188 kB / 0.5152 GB, free: 9.672 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.667e-05/0.2559, allocations: 91.14 kB / 0.5153 GB, free: 9.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2559, allocations: 1.094 kB / 0.5153 GB, free: 9.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002171/0.2561, allocations: 8.75 kB / 0.5153 GB, free: 9.586 MB / 382.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.0002389/0.2564, allocations: 0.6872 MB / 0.5159 GB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.807e-05/0.2564, allocations: 20.33 kB / 0.516 GB, free: 8.895 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2565, allocations: 0 / 0.516 GB, free: 8.895 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.673e-05/0.2565, allocations: 10.31 kB / 0.516 GB, free: 8.891 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.2567, allocations: 19.2 kB / 0.516 GB, free: 8.875 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008868/0.2576, allocations: 1.292 MB / 0.5172 GB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.2577, allocations: 0.6854 MB / 0.5179 GB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.925e-05/0.2578, allocations: 1.969 kB / 0.5179 GB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.351e-05/0.2578, allocations: 18.97 kB / 0.5179 GB, free: 6.895 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2578, allocations: 0 / 0.5179 GB, free: 6.895 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.2748, allocations: 1.609 MB / 0.5195 GB, free: 5.918 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.93/9.205, allocations: 13.66 kB / 0.5195 GB, free: 5.91 MB / 382.1 MB " [Timeout remaining time 651] (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: 12.252427423023619]