Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 84.88 kB / 22 MB, free: 4.754 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 153.8 kB / 25.24 MB, free: 2.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 158.6 MB / 187 MB, free: 6.344 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 55.92 kB / 299.3 MB, free: 6.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2489, allocations: 49.15 MB / 348.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00298/0.2518, allocations: 1.657 MB / 350.1 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006771/0.2525, allocations: 260.8 kB / 350.4 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.279e-05/0.2526, allocations: 7.938 kB / 350.4 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.2528, allocations: 23.73 kB / 350.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.346e-05/0.2528, allocations: 19.75 kB / 350.4 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004443/0.2533, allocations: 127.8 kB / 350.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.2536, allocations: 271.5 kB / 350.8 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.2539, allocations: 153.8 kB / 351 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.254, allocations: 87.72 kB / 351.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.2542, allocations: 91.47 kB / 351.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.2542, allocations: 20 kB / 351.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.408e-05/0.2543, allocations: 39.98 kB / 351.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.2544, allocations: 59.83 kB / 351.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.2545, allocations: 83.58 kB / 351.4 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003523/0.2548, allocations: 249.4 kB / 351.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2548, allocations: 0 / 351.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2548, allocations: 0 / 351.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2548, allocations: 0 / 351.6 MB, free: 12.43 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007975/0.2556, allocations: 416.7 kB / 352 MB, free: 11.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.2557, allocations: 11.98 kB / 352 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.253e-05/0.2558, allocations: 32.78 kB / 352 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.2562, allocations: 174.2 kB / 352.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.917e-05/0.2562, allocations: 20.88 kB / 352.2 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.411e-05/0.2563, allocations: 36.36 kB / 352.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.2569, allocations: 269.8 kB / 352.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.2569, allocations: 192 / 352.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/0.2569, allocations: 19.92 kB / 352.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.2569, allocations: 8 kB / 352.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003796/0.2573, allocations: 161.9 kB / 352.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.2587, allocations: 0.8321 MB / 353.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.2591, allocations: 146.8 kB / 353.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.2592, allocations: 64.77 kB / 353.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.2592, allocations: 8 kB / 353.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.2595, allocations: 111.2 kB / 353.9 MB, free: 9.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.2595, allocations: 0 / 353.9 MB, free: 9.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000494/0.26, allocations: 217.2 kB / 354.1 MB, free: 9.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.328e-05/0.26, allocations: 63.34 kB / 354.2 MB, free: 9.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.2602, allocations: 153.6 kB / 354.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/0.2602, allocations: 37.7 kB / 354.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2604, allocations: 152.8 kB / 354.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.386e-05/0.2604, allocations: 55.53 kB / 354.5 MB, free: 9.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.2606, allocations: 78.02 kB / 354.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.2608, allocations: 334.8 kB / 354.9 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.2609, allocations: 60.62 kB / 355 MB, free: 8.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.2611, allocations: 133.9 kB / 355.1 MB, free: 8.652 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.2614, allocations: 188.4 kB / 355.3 MB, free: 8.438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2614, allocations: 3.938 kB / 355.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004167/0.2618, allocations: 253.2 kB / 355.6 MB, free: 8.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.2618, allocations: 8 kB / 355.6 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2618, allocations: 4.281 kB / 355.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.2618, allocations: 4 kB / 355.6 MB, free: 8.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.262, allocations: 35.92 kB / 355.6 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.262, allocations: 4 kB / 355.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.2621, allocations: 27.78 kB / 355.7 MB, free: 8.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/0.2622, allocations: 23.92 kB / 355.7 MB, free: 8.074 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001592/0.2623, allocations: 156.3 kB / 355.8 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.2623, allocations: 15.91 kB / 355.8 MB, free: 7.895 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003583/0.2627, allocations: 190.5 kB / 356 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2627, allocations: 8 kB / 356 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.2627, allocations: 4 kB / 356 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2627, allocations: 0 / 356 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008022/0.2635, allocations: 0.505 MB / 356.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2635, allocations: 0 / 356.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.494e-05/0.2636, allocations: 23.92 kB / 356.6 MB, free: 7.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2636, allocations: 0 / 356.6 MB, free: 7.121 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.2636, allocations: 8 kB / 356.6 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.2636, allocations: 3.938 kB / 356.6 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2636, allocations: 0 / 356.6 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.264, allocations: 271.3 kB / 356.8 MB, free: 6.828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/0.264, allocations: 23.89 kB / 356.9 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.264, allocations: 4 kB / 356.9 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.653e-05/0.2641, allocations: 11.92 kB / 356.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.002e-05/0.2642, allocations: 19.97 kB / 356.9 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.2642, allocations: 8 kB / 356.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.891e-05/0.2643, allocations: 103.8 kB / 357 MB, free: 6.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2643, allocations: 0 / 357 MB, free: 6.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003278/0.2647, allocations: 55.84 kB / 357.1 MB, free: 6.605 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001659/0.2648, allocations: 103.2 kB / 357.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003868/0.2652, allocations: 171.7 kB / 357.3 MB, free: 6.328 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2652, allocations: 0 / 357.3 MB, free: 6.328 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.2653, allocations: 71.91 kB / 357.4 MB, free: 6.258 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003108/0.2657, allocations: 23.97 kB / 357.4 MB, free: 6.234 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006599/0.2663, allocations: 344.1 kB / 357.8 MB, free: 5.867 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.2664, allocations: 129.8 kB / 357.9 MB, free: 5.723 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.972e-05/0.2665, allocations: 33.92 kB / 357.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.782e-05/0.2666, allocations: 20.5 kB / 357.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2666, allocations: 0 / 357.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of Templates: time 0.005648/0.2722, allocations: 1.898 MB / 359.8 MB, free: 3.77 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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: 4.417451112996787]