Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001767/0.001767, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001475/0.001475, allocations: 208.3 kB / 23.73 MB, free: 4.523 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.395/1.395, 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_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 47.92 kB / 377.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2587, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003228/0.2619, allocations: 1.683 MB / 432.7 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006945/0.2626, allocations: 295.2 kB / 433 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.2627, allocations: 4 kB / 433 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.2629, allocations: 31.67 kB / 433.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.007e-05/0.2629, allocations: 15.8 kB / 433.1 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/0.2633, allocations: 127.8 kB / 433.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003619/0.2637, allocations: 279.4 kB / 433.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002887/0.264, allocations: 156.5 kB / 433.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.2641, allocations: 91.7 kB / 433.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.2643, allocations: 107.5 kB / 433.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.07e-05/0.2643, allocations: 24 kB / 433.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.629e-05/0.2644, allocations: 27.94 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.042e-05/0.2644, allocations: 55.84 kB / 433.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.2646, allocations: 87.56 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003345/0.2649, allocations: 251.3 kB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2649, allocations: 3.938 kB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2649, allocations: 4 kB / 434.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2649, allocations: 4 kB / 434.3 MB, free: 3.434 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.0007287/0.2656, allocations: 417.2 kB / 434.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.2657, allocations: 12.03 kB / 434.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.273e-05/0.2658, allocations: 58.73 kB / 434.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.266, allocations: 36.77 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.2663, allocations: 170.2 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.2663, allocations: 20.88 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.2664, allocations: 28.38 kB / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004608/0.2668, allocations: 273.7 kB / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2669, allocations: 7.875 kB / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.2669, allocations: 12 kB / 435.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.2669, allocations: 11.98 kB / 435.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.2672, allocations: 165.6 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.2684, allocations: 0.8625 MB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.2687, allocations: 165.2 kB / 436.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.2689, allocations: 69.78 kB / 436.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.2689, allocations: 4 kB / 436.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.2691, allocations: 142.6 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.2691, allocations: 4 kB / 436.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004561/0.2696, allocations: 221 kB / 436.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.384e-05/0.2696, allocations: 89.09 kB / 437 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.2698, allocations: 153.7 kB / 437.2 MB, free: 344 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/0.2698, allocations: 41.7 kB / 437.2 MB, free: 296 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.2699, allocations: 136.8 kB / 437.3 MB, free: 152 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.074e-05/0.27, allocations: 63.5 kB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.2701, allocations: 85.5 kB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2703, allocations: 330.8 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.2704, allocations: 63.97 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.2706, allocations: 140.7 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.2708, allocations: 188.8 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2708, allocations: 3.938 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003874/0.2712, allocations: 257.3 kB / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2712, allocations: 8 kB / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.2712, allocations: 0 / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.2713, allocations: 4 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.2714, allocations: 39.84 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.2714, allocations: 4 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.2715, allocations: 32.06 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.2715, allocations: 12 kB / 438.5 MB, free: 14.86 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.0001594/0.2717, allocations: 173.6 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.2717, allocations: 7.953 kB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.509e-05/0.2718, allocations: 20.94 kB / 438.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.2718, allocations: 4 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.2718, allocations: 4 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2718, allocations: 3.984 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007033/0.2725, allocations: 0.5235 MB / 439.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2725, allocations: 4 kB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.715e-05/0.2725, allocations: 15.98 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.2725, allocations: 4 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.2726, allocations: 7.938 kB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2726, allocations: 3.938 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2726, allocations: 4 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003035/0.2729, allocations: 276.1 kB / 439.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.063e-05/0.2729, allocations: 15.84 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.2729, allocations: 7.938 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.17e-05/0.273, allocations: 11.98 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.3e-05/0.2731, allocations: 19.97 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.2731, allocations: 12 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.024e-05/0.2732, allocations: 94.27 kB / 439.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2732, allocations: 0 / 439.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002858/0.2734, allocations: 55.88 kB / 439.8 MB, free: 13.52 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,transition1.enableFire,step.active,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.000625/0.2741, allocations: 0.8172 MB / 440.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003112/0.2744, allocations: 172.2 kB / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2744, allocations: 0 / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.2745, allocations: 71.98 kB / 440.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.2748, allocations: 23.97 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.2771, allocations: 2.053 MB / 442.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001252/0.2772, allocations: 129.6 kB / 443 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.772e-05/0.2773, allocations: 21.94 kB / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.2774, allocations: 63.42 kB / 443.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2774, allocations: 0 / 443.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02977/0.3071, allocations: 4.169 MB / 447.3 MB, free: 5.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.63, allocations: 14.38 kB / 447.3 MB, free: 5.945 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 12.98221911600558]