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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 112.6 kB / 17.13 MB, free: 5.754 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 192.6 kB / 20.08 MB, free: 2.852 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.477/1.477, allocations: 207.6 MB / 230.5 MB, free: 4.035 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.3636/0.3636, allocations: 44.23 MB / 326.5 MB, free: 6.855 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 75.89 kB / 462.2 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2659, allocations: 60.99 MB / 0.5109 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002028/0.2679, allocations: 0.829 MB / 0.5117 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002136/0.2681, allocations: 48.67 kB / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.2682, allocations: 1.031 kB / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.2683, allocations: 7.875 kB / 0.5118 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.161e-05/0.2683, allocations: 1.188 kB / 0.5118 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001178/0.2685, allocations: 23.28 kB / 0.5118 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.2686, allocations: 39.06 kB / 0.5118 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.2687, allocations: 21.64 kB / 0.5118 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.653e-05/0.2687, allocations: 11.81 kB / 0.5118 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.184e-05/0.2687, allocations: 14.55 kB / 0.5119 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.2687, allocations: 3.938 kB / 0.5119 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.031e-05/0.2688, allocations: 2.219 kB / 0.5119 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.859e-05/0.2688, allocations: 6.094 kB / 0.5119 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.238e-05/0.2688, allocations: 23.08 kB / 0.5119 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.2689, allocations: 36.27 kB / 0.5119 GB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2689, allocations: 0 / 0.5119 GB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2689, allocations: 0 / 0.5119 GB, free: 12.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.2689, allocations: 5 kB / 0.5119 GB, free: 12.5 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.0003852/0.2693, allocations: 353.7 kB / 0.5123 GB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.2694, allocations: 13.7 kB / 0.5123 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.116e-05/0.2694, allocations: 32.09 kB / 0.5123 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.959e-05/0.2694, allocations: 7.797 kB / 0.5123 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.2696, allocations: 190.4 kB / 0.5125 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.2696, allocations: 2.656 kB / 0.5125 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.2696, allocations: 3.031 kB / 0.5125 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.2697, allocations: 56.56 kB / 0.5126 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.2697, allocations: 7.875 kB / 0.5126 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2698, allocations: 3.984 kB / 0.5126 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.2698, allocations: 0 / 0.5126 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.412e-05/0.2698, allocations: 10.62 kB / 0.5126 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004184/0.2702, allocations: 295.9 kB / 0.5129 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.088e-05/0.2703, allocations: 30.19 kB / 0.5129 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.46e-05/0.2703, allocations: 8.297 kB / 0.5129 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.2703, allocations: 0 / 0.5129 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.444e-05/0.2704, allocations: 53.84 kB / 0.513 GB, free: 11.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.2704, allocations: 0 / 0.513 GB, free: 11.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001307/0.2705, allocations: 50.72 kB / 0.513 GB, free: 11.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/0.2705, allocations: 58.78 kB / 0.5131 GB, free: 11.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.393e-05/0.2706, allocations: 117.4 kB / 0.5132 GB, free: 11.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.175e-06/0.2706, allocations: 25.7 kB / 0.5132 GB, free: 11.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.794e-05/0.2706, allocations: 91.72 kB / 0.5133 GB, free: 11.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.118e-05/0.2706, allocations: 7.938 kB / 0.5133 GB, free: 11.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.2707, allocations: 18.03 kB / 0.5133 GB, free: 11.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.312e-05/0.2707, allocations: 316.1 kB / 0.5136 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.789e-05/0.2707, allocations: 11.31 kB / 0.5136 GB, free: 10.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.219e-05/0.2707, allocations: 26.89 kB / 0.5136 GB, free: 10.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.284e-05/0.2708, allocations: 22.06 kB / 0.5137 GB, free: 10.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2708, allocations: 0 / 0.5137 GB, free: 10.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.007e-05/0.2708, allocations: 56.2 kB / 0.5137 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.2709, allocations: 6.094 kB / 0.5137 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.2709, allocations: 0 / 0.5137 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.2709, allocations: 1.188 kB / 0.5137 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.045e-05/0.2709, allocations: 2.969 kB / 0.5137 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.2709, allocations: 1.094 kB / 0.5137 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.955e-05/0.2709, allocations: 17.56 kB / 0.5138 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-06/0.2709, allocations: 2.219 kB / 0.5138 GB, free: 10.57 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 4.84e-05/0.271, allocations: 116 kB / 0.5139 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.788e-06/0.271, allocations: 2.344 kB / 0.5139 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.297e-05/0.271, allocations: 10.28 kB / 0.5139 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.271, allocations: 0 / 0.5139 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.271, allocations: 1.156 kB / 0.5139 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.271, allocations: 8.203 kB / 0.5139 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.2712, allocations: 313.5 kB / 0.5142 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2712, allocations: 0 / 0.5142 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.923e-05/0.2713, allocations: 1.406 kB / 0.5142 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.2713, allocations: 0.6562 kB / 0.5142 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.2713, allocations: 5.906 kB / 0.5142 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2713, allocations: 0 / 0.5142 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2713, allocations: 0 / 0.5142 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.2714, allocations: 153.1 kB / 0.5143 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.287e-05/0.2714, allocations: 87.16 kB / 0.5144 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.2714, allocations: 3.938 kB / 0.5144 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.864e-05/0.2715, allocations: 5.844 kB / 0.5144 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.265e-05/0.2715, allocations: 3.938 kB / 0.5144 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.2715, allocations: 1.906 kB / 0.5144 GB, free: 9.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.303e-05/0.2716, allocations: 91.17 kB / 0.5145 GB, free: 9.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2716, allocations: 1.906 kB / 0.5145 GB, free: 9.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002215/0.2718, allocations: 5.094 kB / 0.5145 GB, free: 9.742 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.0002357/0.272, allocations: 0.6907 MB / 0.5152 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.252e-05/0.2721, allocations: 13.12 kB / 0.5152 GB, free: 9.051 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2721, allocations: 5.438 kB / 0.5152 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.769e-05/0.2721, allocations: 12.52 kB / 0.5152 GB, free: 9.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.2724, allocations: 9.938 kB / 0.5152 GB, free: 9.035 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007839/0.2732, allocations: 1.297 MB / 0.5165 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.2733, allocations: 0.6832 MB / 0.5172 GB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.106e-05/0.2733, allocations: 5.953 kB / 0.5172 GB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.034e-05/0.2733, allocations: 13.25 kB / 0.5172 GB, free: 7.051 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2733, allocations: 1.781 kB / 0.5172 GB, free: 7.051 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.2963, allocations: 1.577 MB / 0.5187 GB, free: 6.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.421, allocations: 9.203 kB / 0.5187 GB, free: 6.09 MB / 382.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.230250420048833]