Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001248/0.001248, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001357/0.001357, allocations: 205.9 kB / 23.73 MB, free: 4.379 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.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.785 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_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.253, allocations: 53.36 MB / 431 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003311/0.2563, allocations: 1.666 MB / 432.7 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007086/0.257, allocations: 291.2 kB / 433 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.652e-05/0.2571, allocations: 4 kB / 433 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.2572, allocations: 27.67 kB / 433 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.161e-05/0.2573, allocations: 15.8 kB / 433 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.2577, allocations: 131.7 kB / 433.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003671/0.2581, allocations: 283.5 kB / 433.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003105/0.2584, allocations: 161.1 kB / 433.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2585, allocations: 95.69 kB / 433.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.2587, allocations: 99.55 kB / 433.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.873e-05/0.2587, allocations: 24 kB / 433.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.679e-05/0.2588, allocations: 24 kB / 433.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.66e-05/0.2588, allocations: 67.81 kB / 433.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.2589, allocations: 75.66 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.2593, allocations: 266.9 kB / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2593, allocations: 0 / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2593, allocations: 0 / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2593, allocations: 0 / 434.2 MB, free: 3.398 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006634/0.26, allocations: 433 kB / 434.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.26, allocations: 12.03 kB / 434.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.413e-05/0.2601, allocations: 58.73 kB / 434.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.2603, allocations: 36.77 kB / 434.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.2606, allocations: 170.3 kB / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.2606, allocations: 20.88 kB / 435 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.2607, allocations: 28.38 kB / 435 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.2611, allocations: 273.7 kB / 435.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.2612, allocations: 3.938 kB / 435.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.2612, allocations: 11.98 kB / 435.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2612, allocations: 8 kB / 435.3 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002904/0.2615, allocations: 161.6 kB / 435.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.2626, allocations: 0.8781 MB / 436.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.2629, allocations: 157.2 kB / 436.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.263, allocations: 73.72 kB / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.263, allocations: 7.938 kB / 436.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.2632, allocations: 134.7 kB / 436.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.2632, allocations: 0 / 436.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004203/0.2636, allocations: 221 kB / 436.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.2637, allocations: 89.09 kB / 437 MB, free: 464 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.2639, allocations: 161.6 kB / 437.1 MB, free: 292 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.2639, allocations: 37.83 kB / 437.2 MB, free: 248 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.264, allocations: 144.8 kB / 437.3 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.369e-05/0.264, allocations: 63.53 kB / 437.4 MB, free: 32 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.2642, allocations: 77.69 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2643, allocations: 326.8 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2644, allocations: 67.75 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.2646, allocations: 136.5 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002665/0.2649, allocations: 200.8 kB / 438.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2649, allocations: 0 / 438.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003819/0.2652, allocations: 249.3 kB / 438.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2653, allocations: 8.281 kB / 438.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2653, allocations: 4 kB / 438.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.2653, allocations: 11.92 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.2654, allocations: 39.86 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2654, allocations: 4 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.2655, allocations: 31.78 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.2656, allocations: 12 kB / 438.5 MB, free: 14.8 MB / 350.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001498/0.2657, allocations: 165.7 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.2657, allocations: 11.91 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.788e-05/0.2658, allocations: 20.94 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.2658, allocations: 4 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2658, allocations: 0 / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2658, allocations: 3.984 kB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006962/0.2665, allocations: 0.5314 MB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2665, allocations: 3.984 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.096e-05/0.2666, allocations: 15.94 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.2666, allocations: 4 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.2666, allocations: 7.938 kB / 439.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2666, allocations: 0 / 439.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2666, allocations: 7.938 kB / 439.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003074/0.2669, allocations: 276.2 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.445e-05/0.2669, allocations: 19.78 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.267, allocations: 7.922 kB / 439.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.578e-05/0.267, allocations: 8 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.378e-05/0.2671, allocations: 19.97 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.2671, allocations: 8 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.328e-05/0.2672, allocations: 106.8 kB / 439.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2672, allocations: 0 / 439.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.2675, allocations: 51.84 kB / 439.8 MB, free: 13.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006103/0.2681, allocations: 0.8134 MB / 440.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003101/0.2684, allocations: 179.7 kB / 440.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2684, allocations: 0 / 440.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.2685, allocations: 67.86 kB / 440.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.2688, allocations: 27.97 kB / 440.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.271, allocations: 2.069 MB / 442.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.2711, allocations: 121.5 kB / 443.1 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.069e-05/0.2712, allocations: 21.95 kB / 443.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.2713, allocations: 67.39 kB / 443.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2713, allocations: 0 / 443.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.3004, allocations: 4.209 MB / 447.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.62, allocations: 18.36 kB / 447.4 MB, free: 5.836 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 12.974368316004984]