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.001342/0.001342, allocations: 112.7 kB / 20.43 MB, free: 1.453 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.001495/0.001495, allocations: 214 kB / 23.74 MB, free: 4.66 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.492/1.492, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.2499/0.2499, allocations: 46.93 MB / 360.8 MB, free: 4.184 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.002586/0.002586, allocations: 88.14 kB / 0.4962 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3285, allocations: 66.08 MB / 0.5607 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003107/0.3316, allocations: 1.652 MB / 0.5623 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.3327, allocations: 0.6027 MB / 0.5629 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.3328, allocations: 0 / 0.5629 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.333, allocations: 11.88 kB / 0.5629 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.486e-05/0.333, allocations: 11.86 kB / 0.563 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.3334, allocations: 91.77 kB / 0.563 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.3336, allocations: 111.8 kB / 0.5631 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.3337, allocations: 31.89 kB / 0.5632 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.078e-05/0.3338, allocations: 47.84 kB / 0.5632 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.3338, allocations: 35.84 kB / 0.5633 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.3339, allocations: 8 kB / 0.5633 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.623e-05/0.3339, allocations: 8 kB / 0.5633 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.038e-05/0.3339, allocations: 23.91 kB / 0.5633 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.804e-05/0.334, allocations: 43.73 kB / 0.5633 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.3342, allocations: 95.5 kB / 0.5634 GB, free: 1.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3342, allocations: 4 kB / 0.5634 GB, free: 1.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3342, allocations: 0 / 0.5634 GB, free: 1.492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3342, allocations: 4 kB / 0.5634 GB, free: 1.488 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.0006795/0.3348, allocations: 350.7 kB / 0.5638 GB, free: 1.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.3349, allocations: 8.031 kB / 0.5638 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.201e-05/0.3349, allocations: 34.75 kB / 0.5638 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.032e-05/0.335, allocations: 12.89 kB / 0.5638 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.3353, allocations: 152.6 kB / 0.564 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.3353, allocations: 8.375 kB / 0.564 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.165e-05/0.3353, allocations: 8.312 kB / 0.564 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.3356, allocations: 101.8 kB / 0.5641 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.3356, allocations: 0 / 0.5641 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.3356, allocations: 12 kB / 0.5641 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3356, allocations: 0 / 0.5641 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.3358, allocations: 47.97 kB / 0.5641 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007222/0.3365, allocations: 359.6 kB / 0.5645 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.3369, allocations: 98.5 kB / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.337, allocations: 40.92 kB / 0.5646 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.337, allocations: 0 / 0.5646 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.3373, allocations: 99.28 kB / 0.5647 GB, free: 48 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3373, allocations: 0 / 0.5647 GB, free: 48 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005273/0.3378, allocations: 145.5 kB / 0.5648 GB, free: 15.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.3379, allocations: 55.41 kB / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.338, allocations: 149.8 kB / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.3381, allocations: 29.64 kB / 0.5651 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.35e-05/0.3381, allocations: 108.1 kB / 0.5652 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.3382, allocations: 19.94 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.95e-05/0.3382, allocations: 29.66 kB / 0.5652 GB, free: 15.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3384, allocations: 322.8 kB / 0.5655 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.3385, allocations: 35.97 kB / 0.5656 GB, free: 15.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.3387, allocations: 53.69 kB / 0.5656 GB, free: 15.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.3389, allocations: 81.73 kB / 0.5657 GB, free: 14.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3389, allocations: 0 / 0.5657 GB, free: 14.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003051/0.3392, allocations: 125.5 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3392, allocations: 7.938 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3392, allocations: 0 / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.3392, allocations: 0 / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.3394, allocations: 19.98 kB / 0.5658 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3394, allocations: 4 kB / 0.5658 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.247e-05/0.3395, allocations: 16.02 kB / 0.5659 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.3395, allocations: 4 kB / 0.5659 GB, free: 14.79 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.0001219/0.3396, allocations: 119.2 kB / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.3396, allocations: 15.84 kB / 0.566 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.989e-05/0.3397, allocations: 24.62 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3397, allocations: 0 / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3397, allocations: 0 / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3397, allocations: 4 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007268/0.3404, allocations: 353.5 kB / 0.5664 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3404, allocations: 0 / 0.5664 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.575e-05/0.3405, allocations: 11.98 kB / 0.5664 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3405, allocations: 4 kB / 0.5664 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3405, allocations: 8 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3405, allocations: 3.938 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3405, allocations: 0 / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004883/0.341, allocations: 251.4 kB / 0.5666 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.391e-05/0.341, allocations: 15.92 kB / 0.5666 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.341, allocations: 3.938 kB / 0.5666 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.3412, allocations: 15.98 kB / 0.5667 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.584e-05/0.3412, allocations: 15.97 kB / 0.5667 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.443e-06/0.3412, allocations: 0 / 0.5667 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.3413, allocations: 118.2 kB / 0.5668 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3413, allocations: 4.062 kB / 0.5668 GB, free: 13.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.3416, allocations: 15.94 kB / 0.5668 GB, free: 13.75 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.0008063/0.3424, allocations: 0.7748 MB / 0.5676 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003023/0.3427, allocations: 91.89 kB / 0.5676 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3427, allocations: 0 / 0.5676 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001967/0.3429, allocations: 40.11 kB / 0.5677 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.3432, allocations: 15.98 kB / 0.5677 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.346, allocations: 1.699 MB / 0.5694 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.3464, allocations: 0.6963 MB / 0.57 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.271e-05/0.3465, allocations: 16.48 kB / 0.5701 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.72e-05/0.3465, allocations: 23.44 kB / 0.5701 GB, free: 10.26 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3465, allocations: 0 / 0.5701 GB, free: 10.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.3762, allocations: 2.775 MB / 0.5728 GB, free: 7.578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.42, allocations: 10.88 kB / 0.5728 GB, free: 7.57 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.362029881915078]