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.0008398/0.0008398, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 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.0008449/0.0008449, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.806/0.806, allocations: 158.6 MB / 185 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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.1223/0.1223, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 4 kB / 406.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.909e-05/2.147e-05, allocations: 2.281 kB / 406.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001474/0.001495, allocations: 0.835 MB / 407.7 MB, free: 1.422 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001709/0.001666, allocations: 43.83 kB / 407.7 MB, free: 1.379 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.294e-05/0.001719, allocations: 0 / 407.7 MB, free: 1.379 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.893e-05/0.001818, allocations: 3.938 kB / 407.7 MB, free: 1.375 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.773e-05/0.001836, allocations: 4 kB / 407.7 MB, free: 1.371 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.885e-05/0.001934, allocations: 27.91 kB / 407.7 MB, free: 1.344 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.744e-05/0.002022, allocations: 35.86 kB / 407.8 MB, free: 1.309 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.978e-05/0.002122, allocations: 23.91 kB / 407.8 MB, free: 1.285 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.002224, allocations: 11.98 kB / 407.8 MB, free: 1.273 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.944e-05/0.002264, allocations: 11.94 kB / 407.8 MB, free: 1.262 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.002284, allocations: 4 kB / 407.8 MB, free: 1.258 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.706e-06/0.002293, allocations: 0 / 407.8 MB, free: 1.258 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.033e-05/0.002313, allocations: 7.984 kB / 407.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.71e-05/0.00234, allocations: 15.92 kB / 407.8 MB, free: 1.234 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.393e-05/0.002434, allocations: 31.89 kB / 407.9 MB, free: 1.203 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453e-06/0.002436, allocations: 4 kB / 407.9 MB, free: 1.199 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.002436, allocations: 0 / 407.9 MB, free: 1.199 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.00244, allocations: 0 / 407.9 MB, free: 1.199 MB / 378.7 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.0003157/0.002755, allocations: 287.1 kB / 408.2 MB, free: 0.8828 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.002789, allocations: 12.03 kB / 408.2 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.282e-05/0.002812, allocations: 30.75 kB / 408.2 MB, free: 0.832 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.21e-05/0.002834, allocations: 8.891 kB / 408.2 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.002974, allocations: 125.7 kB / 408.3 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.845e-06/0.002982, allocations: 384 / 408.3 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.002997, allocations: 8.312 kB / 408.3 MB, free: 0.668 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.003104, allocations: 54.25 kB / 408.4 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.003111, allocations: 192 / 408.4 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.00312, allocations: 4.375 kB / 408.4 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.003127, allocations: 4.125 kB / 408.4 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.842e-05/0.003165, allocations: 15.98 kB / 408.4 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003575/0.003523, allocations: 255.8 kB / 408.7 MB, free: 300 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.317e-05/0.003566, allocations: 26.56 kB / 408.7 MB, free: 264 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.215e-05/0.003578, allocations: 8.844 kB / 408.7 MB, free: 252 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.003587, allocations: 4.062 kB / 408.7 MB, free: 248 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.056e-05/0.003647, allocations: 59.41 kB / 408.8 MB, free: 176 kB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.003648, allocations: 4 kB / 408.8 MB, free: 172 kB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001066/0.003755, allocations: 45.69 kB / 408.8 MB, free: 120 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.599e-05/0.003781, allocations: 51.41 kB / 408.9 MB, free: 56 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.249e-05/0.003853, allocations: 117.8 kB / 409 MB, free: 15.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.003863, allocations: 25.7 kB / 409 MB, free: 15.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.365e-05/0.003897, allocations: 88.09 kB / 409.1 MB, free: 15.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.39e-05/0.003911, allocations: 19.88 kB / 409.1 MB, free: 15.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.003934, allocations: 17.66 kB / 409.1 MB, free: 15.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.735e-05/0.004001, allocations: 318.8 kB / 409.4 MB, free: 15.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.177e-05/0.004023, allocations: 15.98 kB / 409.5 MB, free: 15.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.827e-05/0.004041, allocations: 13.72 kB / 409.5 MB, free: 15.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.846e-05/0.00407, allocations: 25.72 kB / 409.5 MB, free: 15.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.004071, allocations: 0 / 409.5 MB, free: 15.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.024e-05/0.004122, allocations: 57.58 kB / 409.6 MB, free: 15.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.004135, allocations: 11.94 kB / 409.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.004142, allocations: 4 kB / 409.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.004155, allocations: 0 / 409.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.449e-05/0.004179, allocations: 4 kB / 409.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.004184, allocations: 0 / 409.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.004203, allocations: 12.02 kB / 409.6 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-06/0.004207, allocations: 0 / 409.6 MB, free: 15.29 MB / 394.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: 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.718e-05/0.004264, allocations: 118.2 kB / 409.7 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-06/0.004269, allocations: 0 / 409.7 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.725e-05/0.004286, allocations: 8 kB / 409.7 MB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.004288, allocations: 3.938 kB / 409.7 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.004292, allocations: 3.938 kB / 409.7 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.004295, allocations: 0 / 409.7 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.004474, allocations: 269.6 kB / 410 MB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.004475, allocations: 0 / 410 MB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.466e-05/0.00449, allocations: 12 kB / 410 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.004491, allocations: 0 / 410 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.004497, allocations: 0 / 410 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.004498, allocations: 3.984 kB / 410 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.004499, allocations: 0 / 410 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9e-05/0.004589, allocations: 151.8 kB / 410.1 MB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.167e-06/0.004599, allocations: 11.98 kB / 410.2 MB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.647e-06/0.004607, allocations: 0 / 410.2 MB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.78e-05/0.004635, allocations: 4 kB / 410.2 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.562e-05/0.004661, allocations: 7.922 kB / 410.2 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.004664, allocations: 0 / 410.2 MB, free: 14.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.01e-05/0.004694, allocations: 95.33 kB / 410.3 MB, free: 14.53 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004694, allocations: 0 / 410.3 MB, free: 14.53 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001364/0.00483, allocations: 8 kB / 410.3 MB, free: 14.52 MB / 394.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: 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.0002372/0.005068, allocations: 0.6773 MB / 410.9 MB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.682e-05/0.005134, allocations: 19.98 kB / 411 MB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.005136, allocations: 0 / 411 MB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.343e-05/0.005149, allocations: 7.938 kB / 411 MB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001839/0.005333, allocations: 19.92 kB / 411 MB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007541/0.006087, allocations: 1.298 MB / 412.3 MB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.005e-05/0.006127, allocations: 71.33 kB / 412.4 MB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.571e-05/0.006143, allocations: 0 / 412.4 MB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.006173, allocations: 16.5 kB / 412.4 MB, free: 12.28 MB / 394.7 MB Notification: Performance of SimCode: time 4.21e-07/0.006174, allocations: 0 / 412.4 MB, free: 12.28 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/0.0188, allocations: 2.274 MB / 414.6 MB, free: 10 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.489/6.508, allocations: 11.75 kB / 414.7 MB, free: 9.992 MB / 394.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/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: 8.339264322072268]