Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001777/0.001777, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002029/0.002029, allocations: 212.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.423/1.423, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 51.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2508, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002973/0.2538, allocations: 1.479 MB / 432.5 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000707/0.2545, allocations: 275.2 kB / 432.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2546, allocations: 4 kB / 432.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.2548, allocations: 27.69 kB / 432.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.197e-05/0.2549, allocations: 19.78 kB / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.2553, allocations: 115.8 kB / 433 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.2557, allocations: 259.5 kB / 433.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.256, allocations: 142.7 kB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.2561, allocations: 91.69 kB / 433.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.2562, allocations: 75.61 kB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/0.2563, allocations: 24 kB / 433.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.408e-05/0.2563, allocations: 31.94 kB / 433.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.42e-05/0.2564, allocations: 51.83 kB / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.291e-05/0.2565, allocations: 79.64 kB / 433.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000318/0.2568, allocations: 252.6 kB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2568, allocations: 4 kB / 434 MB, free: 3.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2568, allocations: 3.938 kB / 434 MB, free: 3.734 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.2568, allocations: 0 / 434 MB, free: 3.734 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006481/0.2575, allocations: 405.1 kB / 434.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2575, allocations: 12.03 kB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.984e-05/0.2576, allocations: 62.73 kB / 434.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002487/0.2578, allocations: 32.81 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.2582, allocations: 178.1 kB / 434.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.2582, allocations: 20.88 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.2582, allocations: 28.38 kB / 434.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004445/0.2587, allocations: 235.2 kB / 434.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.2587, allocations: 3.938 kB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.2587, allocations: 8 kB / 434.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2587, allocations: 4 kB / 434.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.259, allocations: 165.6 kB / 435.1 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009808/0.26, allocations: 0.6082 MB / 435.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.2603, allocations: 154.8 kB / 435.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.2604, allocations: 64.83 kB / 435.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.2605, allocations: 11.94 kB / 435.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.2607, allocations: 113 kB / 436 MB, free: 1.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.2607, allocations: 0 / 436 MB, free: 1.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004244/0.2611, allocations: 225 kB / 436.3 MB, free: 1.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.2611, allocations: 55.41 kB / 436.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.2613, allocations: 150 kB / 436.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.2613, allocations: 37.7 kB / 436.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.971e-05/0.2614, allocations: 132.8 kB / 436.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.902e-05/0.2615, allocations: 67.47 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.2616, allocations: 74.02 kB / 436.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.2617, allocations: 326.8 kB / 437.1 MB, free: 424 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.2618, allocations: 64.62 kB / 437.1 MB, free: 360 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.262, allocations: 128.1 kB / 437.3 MB, free: 208 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/0.2622, allocations: 175.1 kB / 437.4 MB, free: 8 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.2622, allocations: 0 / 437.4 MB, free: 8 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004046/0.2626, allocations: 245.3 kB / 437.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.2627, allocations: 8 kB / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2627, allocations: 0 / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.2627, allocations: 7.938 kB / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.2628, allocations: 31.92 kB / 437.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.2628, allocations: 4 kB / 437.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.2629, allocations: 27.83 kB / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.2629, allocations: 12.22 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001463/0.2631, allocations: 153.7 kB / 437.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.2631, allocations: 15.91 kB / 437.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.249e-05/0.2632, allocations: 24.86 kB / 438 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2632, allocations: 4 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2632, allocations: 0 / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2632, allocations: 0 / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007/0.2639, allocations: 0.5015 MB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2639, allocations: 0 / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.534e-05/0.264, allocations: 15.94 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.264, allocations: 4 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.264, allocations: 12 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.264, allocations: 3.984 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.264, allocations: 0 / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.2643, allocations: 279.8 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.2643, allocations: 15.84 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.2644, allocations: 4 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.2644, allocations: 7.984 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.2645, allocations: 23.91 kB / 438.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.2645, allocations: 15.98 kB / 438.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.776e-05/0.2646, allocations: 91.28 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2646, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.2649, allocations: 51.88 kB / 439 MB, free: 14.38 MB / 350.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (24): * Single equations (assignments): 20 * 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.0006173/0.2655, allocations: 0.7971 MB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003155/0.2658, allocations: 159.8 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2658, allocations: 0 / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.2659, allocations: 75.77 kB / 440 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.2662, allocations: 31.03 kB / 440 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.2685, allocations: 1.993 MB / 442 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.2686, allocations: 112.5 kB / 442.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.932e-05/0.2687, allocations: 25.94 kB / 442.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.2688, allocations: 59.36 kB / 442.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2688, allocations: 0 / 442.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.2981, allocations: 4.076 MB / 446.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.97, allocations: 3.75 kB / 446.3 MB, free: 7.039 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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: 13.352184772025794]