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.001305/0.001305, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001434/0.001434, allocations: 209.5 kB / 23.73 MB, free: 4.523 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.434/1.434, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2404/0.2404, allocations: 46.96 MB / 360.9 MB, free: 4.039 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 59.91 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3396, allocations: 66.03 MB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00211/0.3417, allocations: 0.8125 MB / 0.5614 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002255/0.3419, allocations: 43.83 kB / 0.5614 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.15e-05/0.342, allocations: 0 / 0.5614 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.3421, allocations: 7.922 kB / 0.5614 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.97e-05/0.3421, allocations: 7.938 kB / 0.5614 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001148/0.3422, allocations: 19.98 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.3424, allocations: 35.86 kB / 0.5615 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.3425, allocations: 21.8 kB / 0.5615 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.116e-05/0.3425, allocations: 11.94 kB / 0.5615 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.071e-05/0.3425, allocations: 15.92 kB / 0.5615 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.3426, allocations: 4 kB / 0.5615 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.002e-05/0.3426, allocations: 4 kB / 0.5615 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.748e-05/0.3426, allocations: 4 kB / 0.5615 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.351e-05/0.3426, allocations: 15.88 kB / 0.5616 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.3427, allocations: 39.81 kB / 0.5616 GB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3427, allocations: 0 / 0.5616 GB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3427, allocations: 0 / 0.5616 GB, free: 3.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.3427, allocations: 0 / 0.5616 GB, free: 3.215 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.0004505/0.3432, allocations: 291 kB / 0.5619 GB, free: 2.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3432, allocations: 8.031 kB / 0.5619 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.3433, allocations: 34.75 kB / 0.5619 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.3433, allocations: 8.891 kB / 0.5619 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.3435, allocations: 118.5 kB / 0.562 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.485e-06/0.3435, allocations: 8.312 kB / 0.562 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.3435, allocations: 4.375 kB / 0.562 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.3436, allocations: 54.23 kB / 0.5621 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3436, allocations: 3.938 kB / 0.5621 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.3437, allocations: 4 kB / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3437, allocations: 0 / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.498e-05/0.3437, allocations: 19.92 kB / 0.5621 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/0.3442, allocations: 263.8 kB / 0.5624 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.809e-05/0.3443, allocations: 22.52 kB / 0.5624 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.963e-05/0.3443, allocations: 8.922 kB / 0.5624 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.543e-06/0.3443, allocations: 4 kB / 0.5624 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.027e-05/0.3444, allocations: 59.34 kB / 0.5625 GB, free: 2.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3444, allocations: 0 / 0.5625 GB, free: 2.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001396/0.3445, allocations: 49.69 kB / 0.5625 GB, free: 2.125 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.3446, allocations: 55.34 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.3447, allocations: 117.8 kB / 0.5627 GB, free: 1.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.3447, allocations: 25.7 kB / 0.5627 GB, free: 1.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.782e-05/0.3448, allocations: 92.08 kB / 0.5628 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.3448, allocations: 7.953 kB / 0.5628 GB, free: 1.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.3449, allocations: 17.72 kB / 0.5628 GB, free: 1.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.345, allocations: 322.8 kB / 0.5631 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.585e-05/0.3451, allocations: 4 kB / 0.5631 GB, free: 1.449 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.951e-05/0.3451, allocations: 17.72 kB / 0.5631 GB, free: 1.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.411e-05/0.3451, allocations: 29.72 kB / 0.5632 GB, free: 1.391 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3451, allocations: 0 / 0.5632 GB, free: 1.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.883e-05/0.3452, allocations: 53.62 kB / 0.5632 GB, free: 1.332 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.3452, allocations: 8 kB / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.3452, allocations: 0 / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.3452, allocations: 0 / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.243e-05/0.3453, allocations: 7.984 kB / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.3453, allocations: 0 / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.887e-05/0.3453, allocations: 15.83 kB / 0.5633 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3453, allocations: 4 kB / 0.5633 GB, free: 1.297 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 7.964e-05/0.3454, allocations: 117.9 kB / 0.5634 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.707e-06/0.3454, allocations: 0 / 0.5634 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.594e-05/0.3454, allocations: 11.94 kB / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.3454, allocations: 0 / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.3454, allocations: 0 / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3454, allocations: 7.922 kB / 0.5634 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.3457, allocations: 262 kB / 0.5636 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3457, allocations: 0 / 0.5636 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.053e-05/0.3458, allocations: 7.922 kB / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3458, allocations: 4 kB / 0.5636 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.3458, allocations: 11.88 kB / 0.5637 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3458, allocations: 0 / 0.5637 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3458, allocations: 0 / 0.5637 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001397/0.3459, allocations: 143.9 kB / 0.5638 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.253e-05/0.3459, allocations: 7.984 kB / 0.5638 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.3459, allocations: 7.984 kB / 0.5638 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.068e-05/0.346, allocations: 7.969 kB / 0.5638 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.346, allocations: 4 kB / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.346, allocations: 0 / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.07e-05/0.3461, allocations: 91.27 kB / 0.5639 GB, free: 0.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3461, allocations: 3.938 kB / 0.5639 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002304/0.3463, allocations: 16 kB / 0.5639 GB, free: 0.5234 MB / 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.0004212/0.3467, allocations: 0.6734 MB / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.542e-05/0.3468, allocations: 27.86 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3468, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.669e-05/0.3468, allocations: 4 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.3471, allocations: 14.95 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.3483, allocations: 1.282 MB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.076e-05/0.3484, allocations: 74.27 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.173e-05/0.3484, allocations: 4 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.3484, allocations: 19.44 kB / 0.566 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3484, allocations: 0 / 0.566 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.3764, allocations: 2.102 MB / 0.568 GB, free: 12.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.2, allocations: 2.406 kB / 0.568 GB, free: 12.32 MB / 414.1 MB " [Timeout remaining time 649] (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.07012371098972]