Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002155/0.002155, allocations: 213.1 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2236/0.2236, allocations: 46.95 MB / 360.8 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 79.88 kB / 0.4961 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3137, allocations: 66.09 MB / 0.5607 GB, free: 4.078 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003112/0.3168, allocations: 1.623 MB / 0.5623 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.3179, allocations: 0.5561 MB / 0.5628 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.266e-05/0.318, allocations: 7.938 kB / 0.5628 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.3181, allocations: 11.86 kB / 0.5628 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.165e-05/0.3182, allocations: 7.875 kB / 0.5628 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004292/0.3186, allocations: 99.73 kB / 0.5629 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.3188, allocations: 111.8 kB / 0.563 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.3189, allocations: 23.97 kB / 0.5631 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.583e-05/0.319, allocations: 51.77 kB / 0.5631 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.42e-05/0.3191, allocations: 31.84 kB / 0.5631 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.751e-05/0.3191, allocations: 12 kB / 0.5632 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.744e-05/0.3191, allocations: 11.94 kB / 0.5632 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.3191, allocations: 11.98 kB / 0.5632 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.345e-05/0.3192, allocations: 35.8 kB / 0.5632 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.3194, allocations: 95.56 kB / 0.5633 GB, free: 1.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.3194, allocations: 0 / 0.5633 GB, free: 1.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3194, allocations: 0 / 0.5633 GB, free: 1.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.3194, allocations: 4 kB / 0.5633 GB, free: 1.383 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006789/0.32, allocations: 350.8 kB / 0.5636 GB, free: 1.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3201, allocations: 8.031 kB / 0.5636 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.3201, allocations: 42.69 kB / 0.5637 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.3202, allocations: 8.891 kB / 0.5637 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.3205, allocations: 142.4 kB / 0.5638 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.3205, allocations: 12.38 kB / 0.5638 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.847e-05/0.3205, allocations: 12.36 kB / 0.5639 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.3208, allocations: 105.7 kB / 0.564 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3208, allocations: 3.938 kB / 0.564 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3208, allocations: 0 / 0.564 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3208, allocations: 4 kB / 0.564 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.321, allocations: 55.91 kB / 0.564 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007093/0.3217, allocations: 347.6 kB / 0.5643 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.3221, allocations: 102.5 kB / 0.5644 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.3222, allocations: 32.88 kB / 0.5645 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.3222, allocations: 0 / 0.5645 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003291/0.3225, allocations: 99.36 kB / 0.5646 GB, free: 15.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3225, allocations: 4 kB / 0.5646 GB, free: 15.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.000471/0.323, allocations: 145.4 kB / 0.5647 GB, free: 15.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.323, allocations: 55.41 kB / 0.5648 GB, free: 15.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.3232, allocations: 145.8 kB / 0.5649 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.3232, allocations: 29.7 kB / 0.5649 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.3234, allocations: 100.1 kB / 0.565 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.088e-05/0.3235, allocations: 27.92 kB / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.3235, allocations: 21.72 kB / 0.5651 GB, free: 15.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002669/0.3238, allocations: 322.8 kB / 0.5654 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.3239, allocations: 35.97 kB / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.3241, allocations: 49.69 kB / 0.5655 GB, free: 14.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.3243, allocations: 77.62 kB / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3243, allocations: 0 / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004163/0.3247, allocations: 125.7 kB / 0.5657 GB, free: 14.76 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3247, allocations: 7.938 kB / 0.5657 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3247, allocations: 7.984 kB / 0.5657 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3247, allocations: 0 / 0.5657 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.988e-05/0.3248, allocations: 15.94 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3248, allocations: 0 / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.712e-05/0.3249, allocations: 15.97 kB / 0.5657 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.3249, allocations: 8 kB / 0.5657 GB, free: 14.7 MB / 414.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: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 0.0001051/0.3251, allocations: 120.4 kB / 0.5658 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.3251, allocations: 15.84 kB / 0.5658 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.3251, allocations: 12.72 kB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3251, allocations: 3.938 kB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.3251, allocations: 4 kB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.3251, allocations: 0 / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005748/0.3257, allocations: 361.5 kB / 0.5662 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3257, allocations: 0 / 0.5662 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.536e-05/0.3258, allocations: 8 kB / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3258, allocations: 0 / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3258, allocations: 3.984 kB / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.3258, allocations: 4 kB / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3258, allocations: 0 / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005136/0.3263, allocations: 251.8 kB / 0.5665 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.335e-05/0.3264, allocations: 11.94 kB / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.633e-05/0.3264, allocations: 8 kB / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.3265, allocations: 15.97 kB / 0.5665 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.3266, allocations: 15.98 kB / 0.5665 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.3266, allocations: 12.05 kB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.433e-05/0.3267, allocations: 110.6 kB / 0.5666 GB, free: 13.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3267, allocations: 0 / 0.5666 GB, free: 13.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002405/0.3269, allocations: 19.94 kB / 0.5666 GB, free: 13.67 MB / 414.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008489/0.3278, allocations: 0.7826 MB / 0.5674 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003129/0.3281, allocations: 79.95 kB / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3281, allocations: 0 / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.3283, allocations: 43.91 kB / 0.5675 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.3286, allocations: 27.58 kB / 0.5676 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.3313, allocations: 1.693 MB / 0.5692 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.3314, allocations: 93.25 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.855e-05/0.3314, allocations: 4.5 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.27e-05/0.3315, allocations: 35.42 kB / 0.5693 GB, free: 10.78 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3315, allocations: 0 / 0.5693 GB, free: 10.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03067/0.3622, allocations: 3.237 MB / 0.5725 GB, free: 7.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.04, allocations: 7.938 kB / 0.5725 GB, free: 7.637 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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: 13.852232871577144]