Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001688/0.001688, allocations: 118.5 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001985/0.001985, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2139/0.2139, allocations: 46.13 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00242/0.002421, allocations: 79.86 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3156, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001944/0.3176, allocations: 0.8178 MB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001864/0.3178, allocations: 39.14 kB / 0.5314 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.175e-05/0.3179, allocations: 3.531 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.318, allocations: 11.88 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.552e-05/0.318, allocations: 0 / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001118/0.3181, allocations: 23.45 kB / 0.5315 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.3182, allocations: 38.36 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.892e-05/0.3183, allocations: 18.58 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.395e-05/0.3184, allocations: 15.75 kB / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.206e-05/0.3184, allocations: 18.08 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.3184, allocations: 3.781 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.009e-05/0.3185, allocations: 2.656 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.64e-05/0.3185, allocations: 3.438 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.558e-05/0.3185, allocations: 19.84 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.3186, allocations: 45.36 kB / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3186, allocations: 0 / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3187, allocations: 0 / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.3187, allocations: 0 / 0.5316 GB, free: 12.56 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.00045/0.3191, allocations: 360.5 kB / 0.532 GB, free: 12.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3192, allocations: 10.19 kB / 0.532 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.607e-05/0.3192, allocations: 30.75 kB / 0.532 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.46e-05/0.3192, allocations: 3.156 kB / 0.532 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.3194, allocations: 183.2 kB / 0.5322 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.3195, allocations: 2.375 kB / 0.5322 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.3195, allocations: 2.438 kB / 0.5322 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.3196, allocations: 58.52 kB / 0.5323 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3196, allocations: 7.938 kB / 0.5323 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.3196, allocations: 4 kB / 0.5323 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3196, allocations: 1.594 kB / 0.5323 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.417e-05/0.3197, allocations: 11.34 kB / 0.5323 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.3202, allocations: 290.2 kB / 0.5326 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.156e-05/0.3202, allocations: 24.36 kB / 0.5326 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.676e-05/0.3203, allocations: 7.578 kB / 0.5326 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.3203, allocations: 4 kB / 0.5326 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.37e-05/0.3204, allocations: 53.52 kB / 0.5326 GB, free: 11.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.3204, allocations: 1 kB / 0.5326 GB, free: 11.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001372/0.3205, allocations: 58.89 kB / 0.5327 GB, free: 11.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.3206, allocations: 51.41 kB / 0.5328 GB, free: 11.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.3207, allocations: 120.3 kB / 0.5329 GB, free: 11.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.3207, allocations: 25.7 kB / 0.5329 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.746e-05/0.3208, allocations: 94.38 kB / 0.533 GB, free: 11.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.246e-05/0.3208, allocations: 5.422 kB / 0.533 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.3209, allocations: 22.39 kB / 0.533 GB, free: 11.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.321, allocations: 316 kB / 0.5333 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.761e-05/0.321, allocations: 7.344 kB / 0.5333 GB, free: 10.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.084e-05/0.3211, allocations: 27.23 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.245e-05/0.3211, allocations: 33.94 kB / 0.5334 GB, free: 10.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3211, allocations: 0 / 0.5334 GB, free: 10.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.138e-05/0.3212, allocations: 51.88 kB / 0.5334 GB, free: 10.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.3212, allocations: 5.594 kB / 0.5334 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3212, allocations: 1.062 kB / 0.5334 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3212, allocations: 5.062 kB / 0.5334 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.093e-05/0.3213, allocations: 3.219 kB / 0.5334 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.3213, allocations: 0.9062 kB / 0.5334 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.034e-05/0.3213, allocations: 9.109 kB / 0.5335 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.3214, allocations: 10.47 kB / 0.5335 GB, free: 10.63 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 0.0001152/0.3215, allocations: 112.1 kB / 0.5336 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.207e-05/0.3215, allocations: 6.484 kB / 0.5336 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.215e-05/0.3215, allocations: 8.969 kB / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3215, allocations: 1.188 kB / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3215, allocations: 0 / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3215, allocations: 3.938 kB / 0.5336 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.3219, allocations: 301 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3219, allocations: 0 / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.75e-05/0.3219, allocations: 7.156 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3219, allocations: 0 / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.3219, allocations: 5.375 kB / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3219, allocations: 0 / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3219, allocations: 0 / 0.5339 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.3221, allocations: 148.3 kB / 0.534 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.3222, allocations: 82.62 kB / 0.5341 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.3222, allocations: 10.08 kB / 0.5341 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.632e-05/0.3222, allocations: 8.062 kB / 0.5341 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-05/0.3223, allocations: 1.031 kB / 0.5341 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3223, allocations: 5.984 kB / 0.5341 GB, free: 9.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.682e-05/0.3223, allocations: 92.89 kB / 0.5342 GB, free: 9.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3224, allocations: 0 / 0.5342 GB, free: 9.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.3226, allocations: 7.719 kB / 0.5342 GB, free: 9.809 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.000471/0.323, allocations: 0.6866 MB / 0.5349 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.328e-05/0.3231, allocations: 23.03 kB / 0.5349 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3231, allocations: 0 / 0.5349 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.99e-05/0.3232, allocations: 5.875 kB / 0.5349 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.3234, allocations: 18.67 kB / 0.5349 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.3246, allocations: 1.288 MB / 0.5362 GB, free: 7.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.325, allocations: 0.6894 MB / 0.5369 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.041e-05/0.325, allocations: 3.594 kB / 0.5369 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.325, allocations: 17.23 kB / 0.5369 GB, free: 7.121 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3251, allocations: 0 / 0.5369 GB, free: 7.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/0.3484, allocations: 1.542 MB / 0.5384 GB, free: 6.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/7.997, allocations: 12.17 kB / 0.5384 GB, free: 6.258 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches