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.008408/0.008408, allocations: 107.5 kB / 21.98 MB, free: 5.219 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.002556/0.002556, allocations: 216.6 kB / 25.29 MB, free: 3.203 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.434/1.434, allocations: 230.5 MB / 258.9 MB, free: 8.027 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.2273/0.2273, allocations: 46.93 MB / 362.3 MB, free: 4.211 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: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") [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.002368/0.002368, allocations: 83.86 kB / 0.4982 GB, free: 7.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3052, allocations: 66.08 MB / 0.5627 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003267/0.3085, allocations: 1.663 MB / 0.5643 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.3097, allocations: 0.597 MB / 0.5649 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.655e-05/0.3098, allocations: 4 kB / 0.5649 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.3099, allocations: 15.81 kB / 0.5649 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.022e-05/0.31, allocations: 7.875 kB / 0.565 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.3103, allocations: 99.8 kB / 0.565 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001933/0.3105, allocations: 111.7 kB / 0.5652 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.3106, allocations: 26.64 kB / 0.5652 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.163e-05/0.3107, allocations: 51.83 kB / 0.5652 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.664e-05/0.3108, allocations: 35.84 kB / 0.5653 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.3108, allocations: 8 kB / 0.5653 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.785e-05/0.3108, allocations: 8 kB / 0.5653 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.266e-05/0.3109, allocations: 19.92 kB / 0.5653 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.93e-05/0.3109, allocations: 43.67 kB / 0.5653 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.3111, allocations: 91.34 kB / 0.5654 GB, free: 1.465 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3111, allocations: 4 kB / 0.5654 GB, free: 1.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3111, allocations: 3.938 kB / 0.5654 GB, free: 1.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3111, allocations: 0 / 0.5654 GB, free: 1.457 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.0006529/0.3118, allocations: 350.8 kB / 0.5658 GB, free: 1.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3118, allocations: 8.031 kB / 0.5658 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.083e-05/0.3119, allocations: 12.89 kB / 0.5658 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.3121, allocations: 150.3 kB / 0.5659 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.3122, allocations: 8.375 kB / 0.5659 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.3122, allocations: 4.375 kB / 0.5659 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.3125, allocations: 108.7 kB / 0.566 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.3125, allocations: 0 / 0.566 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.3125, allocations: 7.984 kB / 0.5661 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.3125, allocations: 8 kB / 0.5661 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.3127, allocations: 43.97 kB / 0.5661 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/0.3133, allocations: 363.6 kB / 0.5665 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.3136, allocations: 102.5 kB / 0.5666 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3138, allocations: 32.92 kB / 0.5666 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.3138, allocations: 0 / 0.5666 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/0.314, allocations: 103.3 kB / 0.5667 GB, free: 56 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.314, allocations: 0 / 0.5667 GB, free: 56 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000489/0.3145, allocations: 137.6 kB / 0.5668 GB, free: 15.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.3146, allocations: 63.27 kB / 0.5669 GB, free: 15.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.3147, allocations: 145.8 kB / 0.567 GB, free: 15.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.3147, allocations: 29.7 kB / 0.567 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.693e-05/0.3148, allocations: 104.1 kB / 0.5671 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.3148, allocations: 19.86 kB / 0.5672 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.3149, allocations: 33.64 kB / 0.5672 GB, free: 15.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.315, allocations: 318.8 kB / 0.5675 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.3152, allocations: 35.98 kB / 0.5675 GB, free: 15.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.3153, allocations: 53.69 kB / 0.5676 GB, free: 15.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002235/0.3155, allocations: 77.73 kB / 0.5677 GB, free: 14.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3155, allocations: 0 / 0.5677 GB, free: 14.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000298/0.3158, allocations: 117.5 kB / 0.5678 GB, free: 14.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.3158, allocations: 11.94 kB / 0.5678 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3158, allocations: 0 / 0.5678 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3159, allocations: 0 / 0.5678 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.316, allocations: 19.98 kB / 0.5678 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.316, allocations: 0 / 0.5678 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.276e-05/0.3161, allocations: 24.09 kB / 0.5678 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.3161, allocations: 0 / 0.5678 GB, free: 14.82 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.0001125/0.3162, allocations: 121.8 kB / 0.5679 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.3162, allocations: 23.83 kB / 0.568 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.3162, allocations: 12.72 kB / 0.568 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3162, allocations: 4 kB / 0.568 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3163, allocations: 0 / 0.568 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3163, allocations: 0 / 0.568 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005466/0.3168, allocations: 361.5 kB / 0.5683 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3168, allocations: 0 / 0.5683 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.196e-05/0.3169, allocations: 15.92 kB / 0.5683 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3169, allocations: 0 / 0.5683 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.3169, allocations: 8 kB / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3169, allocations: 0 / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3169, allocations: 0 / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000461/0.3174, allocations: 247.4 kB / 0.5686 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.954e-05/0.3174, allocations: 15.94 kB / 0.5686 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.3174, allocations: 7.984 kB / 0.5686 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3175, allocations: 15.97 kB / 0.5686 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.79e-05/0.3176, allocations: 15.98 kB / 0.5686 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.3176, allocations: 3.938 kB / 0.5686 GB, free: 13.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.3177, allocations: 114.2 kB / 0.5687 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3177, allocations: 0 / 0.5687 GB, free: 13.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.3179, allocations: 24 kB / 0.5688 GB, free: 13.77 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.0001056/0.318, allocations: 91.25 kB / 0.5689 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003193/0.3184, allocations: 95.89 kB / 0.5689 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3184, allocations: 0 / 0.5689 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.3185, allocations: 39.98 kB / 0.569 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.3188, allocations: 15.98 kB / 0.569 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000958/0.3198, allocations: 300.8 kB / 0.5693 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.3201, allocations: 0.6962 MB / 0.57 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.3202, allocations: 19.44 kB / 0.57 GB, free: 12.46 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3202, allocations: 0 / 0.57 GB, free: 12.46 MB / 414.1 MB Notification: Performance of Templates: time 0.00325/0.3234, allocations: 1.351 MB / 0.5713 GB, free: 11.1 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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_4.1.0-beta.om_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: 7.253163668094203]