Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001469/0.001469, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.001661/0.001661, allocations: 219.5 kB / 23 MB, free: 5.609 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.441/1.441, allocations: 230.2 MB / 256.2 MB, free: 8.707 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2258/0.2258, allocations: 46.89 MB / 359.4 MB, free: 4.938 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 87.84 kB / 0.4941 GB, free: 9.027 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.312, allocations: 65.98 MB / 0.5586 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002795/0.3148, allocations: 1.648 MB / 0.5602 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.3159, allocations: 0.6105 MB / 0.5608 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.027e-05/0.316, allocations: 3.938 kB / 0.5608 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.3161, allocations: 15.86 kB / 0.5608 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.053e-05/0.3161, allocations: 7.875 kB / 0.5608 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.3165, allocations: 95.25 kB / 0.5609 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.3166, allocations: 115.8 kB / 0.561 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3167, allocations: 23.97 kB / 0.561 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.116e-05/0.3168, allocations: 51.77 kB / 0.5611 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.358e-05/0.3169, allocations: 39.83 kB / 0.5611 GB, free: 2.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.3169, allocations: 8 kB / 0.5611 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.3169, allocations: 8 kB / 0.5611 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.125e-05/0.317, allocations: 19.92 kB / 0.5611 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.29e-05/0.317, allocations: 43.73 kB / 0.5612 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.3172, allocations: 87.56 kB / 0.5613 GB, free: 2.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3172, allocations: 0 / 0.5613 GB, free: 2.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.3172, allocations: 0 / 0.5613 GB, free: 2.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.3172, allocations: 4 kB / 0.5613 GB, free: 2.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.0006798/0.3179, allocations: 419 kB / 0.5617 GB, free: 1.926 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.3179, allocations: 8.031 kB / 0.5617 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.946e-05/0.318, allocations: 42.73 kB / 0.5617 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.318, allocations: 16.77 kB / 0.5617 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.3183, allocations: 200.2 kB / 0.5619 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.3183, allocations: 8.375 kB / 0.5619 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.3183, allocations: 8.375 kB / 0.5619 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.3186, allocations: 105.8 kB / 0.562 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3186, allocations: 0 / 0.562 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.3186, allocations: 4 kB / 0.562 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3186, allocations: 0 / 0.562 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.3188, allocations: 59 kB / 0.5621 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007224/0.3195, allocations: 388.5 kB / 0.5625 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.3199, allocations: 102.5 kB / 0.5626 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.32, allocations: 36.92 kB / 0.5626 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.32, allocations: 4 kB / 0.5626 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.3203, allocations: 91.36 kB / 0.5627 GB, free: 0.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.3203, allocations: 0 / 0.5627 GB, free: 0.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004766/0.3207, allocations: 149.5 kB / 0.5628 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.3208, allocations: 55.41 kB / 0.5629 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.3209, allocations: 145.8 kB / 0.563 GB, free: 388 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.321, allocations: 33.64 kB / 0.5631 GB, free: 348 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.321, allocations: 108.1 kB / 0.5632 GB, free: 236 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.218e-05/0.3211, allocations: 19.86 kB / 0.5632 GB, free: 216 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.3211, allocations: 25.7 kB / 0.5632 GB, free: 184 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3213, allocations: 322.8 kB / 0.5635 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.3214, allocations: 31.98 kB / 0.5635 GB, free: 15.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.3215, allocations: 53.69 kB / 0.5636 GB, free: 15.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.3217, allocations: 77.61 kB / 0.5637 GB, free: 15.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3217, allocations: 192 / 0.5637 GB, free: 15.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003171/0.3221, allocations: 125.5 kB / 0.5638 GB, free: 15.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.3221, allocations: 7.938 kB / 0.5638 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3221, allocations: 3.984 kB / 0.5638 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.3221, allocations: 4 kB / 0.5638 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.3222, allocations: 19.92 kB / 0.5638 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.3222, allocations: 0 / 0.5638 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.704e-05/0.3223, allocations: 24.09 kB / 0.5638 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.3223, allocations: 8 kB / 0.5639 GB, free: 15.49 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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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 9.514e-05/0.3224, allocations: 113.8 kB / 0.564 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.3224, allocations: 15.84 kB / 0.564 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/0.3225, allocations: 16.7 kB / 0.564 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3225, allocations: 0 / 0.564 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3225, allocations: 0 / 0.564 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3225, allocations: 0 / 0.564 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000585/0.3231, allocations: 394.4 kB / 0.5644 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.3231, allocations: 0 / 0.5644 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.481e-05/0.3232, allocations: 19.98 kB / 0.5644 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3232, allocations: 0 / 0.5644 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.3232, allocations: 0 / 0.5644 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.3232, allocations: 0 / 0.5644 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3232, allocations: 4 kB / 0.5644 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005025/0.3237, allocations: 255.7 kB / 0.5646 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.01e-05/0.3238, allocations: 93.11 kB / 0.5647 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.3238, allocations: 3.938 kB / 0.5647 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.3239, allocations: 15.98 kB / 0.5647 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.734e-05/0.324, allocations: 15.97 kB / 0.5648 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-06/0.324, allocations: 4 kB / 0.5648 GB, free: 14.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.561e-05/0.3241, allocations: 110.8 kB / 0.5649 GB, free: 14.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3241, allocations: 0 / 0.5649 GB, free: 14.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002409/0.3243, allocations: 23.92 kB / 0.5649 GB, free: 14.32 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,booleanPulse.pulseStart,change.u) * 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.0007854/0.3251, allocations: 0.7826 MB / 0.5657 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003073/0.3254, allocations: 79.94 kB / 0.5657 GB, free: 13.44 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3254, allocations: 288 / 0.5657 GB, free: 13.44 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.3256, allocations: 44.05 kB / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.3259, allocations: 23.86 kB / 0.5658 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.3285, allocations: 1.697 MB / 0.5675 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.3288, allocations: 0.701 MB / 0.5681 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.899e-05/0.3289, allocations: 8.547 kB / 0.5681 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.291e-05/0.329, allocations: 27.44 kB / 0.5682 GB, free: 10.82 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.329, allocations: 4 kB / 0.5682 GB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.356, allocations: 2.616 MB / 0.5707 GB, free: 8.262 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.099/8.455, allocations: 8.625 kB / 0.5707 GB, free: 8.254 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.196095262013841] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.539034351008013 8.564521326 8.242266436 Calling exit ...