Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001538/0.001538, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001599/0.001599, allocations: 212.5 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 258.3 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2358/0.2358, allocations: 46.96 MB / 361.7 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 67.84 kB / 0.4969 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3496, allocations: 66.03 MB / 0.5613 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002278/0.3519, allocations: 0.8074 MB / 0.5621 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002185/0.3521, allocations: 47.81 kB / 0.5622 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.722e-05/0.3522, allocations: 8 kB / 0.5622 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.3523, allocations: 7.875 kB / 0.5622 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.676e-05/0.3523, allocations: 0 / 0.5622 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001252/0.3524, allocations: 23.92 kB / 0.5622 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.3526, allocations: 39.91 kB / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.3527, allocations: 13.81 kB / 0.5623 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.059e-05/0.3527, allocations: 15.92 kB / 0.5623 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.685e-05/0.3527, allocations: 11.94 kB / 0.5623 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.3528, allocations: 7.875 kB / 0.5623 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.165e-05/0.3528, allocations: 4 kB / 0.5623 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.533e-05/0.3528, allocations: 15.98 kB / 0.5623 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.898e-05/0.3528, allocations: 7.938 kB / 0.5623 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.353, allocations: 43.77 kB / 0.5624 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.353, allocations: 0 / 0.5624 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.353, allocations: 0 / 0.5624 GB, free: 3.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.353, allocations: 0 / 0.5624 GB, free: 3.168 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.0005234/0.3535, allocations: 279.1 kB / 0.5626 GB, free: 2.859 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3535, allocations: 12.03 kB / 0.5626 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.651e-05/0.3536, allocations: 192 / 0.5626 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.484e-05/0.3536, allocations: 34.73 kB / 0.5627 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.3536, allocations: 8.891 kB / 0.5627 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.3539, allocations: 126.5 kB / 0.5628 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.3539, allocations: 384 / 0.5628 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.3539, allocations: 8.375 kB / 0.5628 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.354, allocations: 57.98 kB / 0.5629 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3541, allocations: 0 / 0.5629 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3541, allocations: 0 / 0.5629 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3541, allocations: 0 / 0.5629 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.703e-05/0.3541, allocations: 15.98 kB / 0.5629 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005544/0.3547, allocations: 251.8 kB / 0.5631 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.557e-05/0.3548, allocations: 30.58 kB / 0.5632 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.171e-05/0.3548, allocations: 4.859 kB / 0.5632 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.3548, allocations: 4.062 kB / 0.5632 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/0.3549, allocations: 59.28 kB / 0.5632 GB, free: 2.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3549, allocations: 0 / 0.5632 GB, free: 2.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001566/0.3551, allocations: 57.62 kB / 0.5633 GB, free: 2.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.3551, allocations: 51.41 kB / 0.5633 GB, free: 2.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.3552, allocations: 129.7 kB / 0.5635 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.3553, allocations: 25.7 kB / 0.5635 GB, free: 1.859 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.744e-05/0.3553, allocations: 88.09 kB / 0.5636 GB, free: 1.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.3554, allocations: 11.95 kB / 0.5636 GB, free: 1.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-05/0.3554, allocations: 21.7 kB / 0.5636 GB, free: 1.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3556, allocations: 310.8 kB / 0.5639 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.14e-05/0.3556, allocations: 8 kB / 0.5639 GB, free: 1.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.494e-05/0.3556, allocations: 25.64 kB / 0.5639 GB, free: 1.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.393e-05/0.3557, allocations: 21.72 kB / 0.5639 GB, free: 1.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3557, allocations: 4 kB / 0.5639 GB, free: 1.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.53e-05/0.3558, allocations: 49.62 kB / 0.564 GB, free: 1.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3558, allocations: 8 kB / 0.564 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3558, allocations: 4.031 kB / 0.564 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.3558, allocations: 0 / 0.564 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.26e-05/0.3558, allocations: 4 kB / 0.564 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3558, allocations: 0 / 0.564 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.507e-05/0.3559, allocations: 15.89 kB / 0.564 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.3559, allocations: 4 kB / 0.564 GB, free: 1.258 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 8.476e-05/0.356, allocations: 109.8 kB / 0.5641 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.356, allocations: 3.984 kB / 0.5641 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.356, allocations: 12 kB / 0.5641 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.356, allocations: 0 / 0.5641 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.356, allocations: 4 kB / 0.5642 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.356, allocations: 3.938 kB / 0.5642 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000316/0.3563, allocations: 269.6 kB / 0.5644 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3563, allocations: 0 / 0.5644 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.025e-05/0.3564, allocations: 0 / 0.5644 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3564, allocations: 4 kB / 0.5644 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.3564, allocations: 3.938 kB / 0.5644 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3564, allocations: 0 / 0.5644 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3564, allocations: 0 / 0.5644 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/0.3565, allocations: 151.8 kB / 0.5646 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.295e-05/0.3565, allocations: 7.984 kB / 0.5646 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3566, allocations: 11.98 kB / 0.5646 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.693e-05/0.3566, allocations: 3.984 kB / 0.5646 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.873e-05/0.3566, allocations: 8 kB / 0.5646 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.3566, allocations: 0 / 0.5646 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.741e-05/0.3567, allocations: 95.58 kB / 0.5647 GB, free: 0.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3567, allocations: 0 / 0.5647 GB, free: 0.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.3569, allocations: 11.94 kB / 0.5647 GB, free: 500 kB / 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.0004934/0.3574, allocations: 0.6811 MB / 0.5654 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.3575, allocations: 16 kB / 0.5654 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3575, allocations: 4.125 kB / 0.5654 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.274e-05/0.3576, allocations: 11.98 kB / 0.5654 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3578, allocations: 7.938 kB / 0.5654 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.3592, allocations: 1.294 MB / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.304e-05/0.3593, allocations: 67.34 kB / 0.5667 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.369e-05/0.3593, allocations: 4.172 kB / 0.5667 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.004e-05/0.3593, allocations: 15.44 kB / 0.5667 GB, free: 14.26 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3593, allocations: 0 / 0.5667 GB, free: 14.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.3832, allocations: 1.746 MB / 0.5685 GB, free: 12.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.8, allocations: 8 kB / 0.5685 GB, free: 12.65 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 14.880528986104764]