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.00192/0.00192, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002054/0.002054, allocations: 212.7 kB / 23.74 MB, free: 4.66 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 8.043 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.00163/0.00163, allocations: 47.92 kB / 377.8 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2617, allocations: 53.36 MB / 431.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003177/0.2649, allocations: 1.694 MB / 432.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000741/0.2656, allocations: 295.2 kB / 433.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.2657, allocations: 7.938 kB / 433.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.2659, allocations: 27.67 kB / 433.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.651e-05/0.2659, allocations: 11.81 kB / 433.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004361/0.2664, allocations: 135.7 kB / 433.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.2668, allocations: 279.5 kB / 433.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003164/0.2671, allocations: 161.2 kB / 433.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.2672, allocations: 95.7 kB / 433.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.2674, allocations: 107.5 kB / 433.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.695e-05/0.2674, allocations: 24 kB / 433.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.581e-05/0.2675, allocations: 35.98 kB / 434 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.316e-05/0.2675, allocations: 55.83 kB / 434 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.2676, allocations: 99.53 kB / 434.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003246/0.268, allocations: 254.9 kB / 434.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.268, allocations: 7.922 kB / 434.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.268, allocations: 0 / 434.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.268, allocations: 0 / 434.4 MB, free: 3.621 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.0006631/0.2686, allocations: 429.2 kB / 434.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2687, allocations: 8.031 kB / 434.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.781e-05/0.2688, allocations: 62.72 kB / 434.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002299/0.269, allocations: 36.72 kB / 434.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.2693, allocations: 170.3 kB / 435.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.2693, allocations: 24.88 kB / 435.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.2693, allocations: 28.36 kB / 435.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.2698, allocations: 277.7 kB / 435.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.2698, allocations: 7.938 kB / 435.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.2699, allocations: 8 kB / 435.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.2699, allocations: 8 kB / 435.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003114/0.2702, allocations: 161.6 kB / 435.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.2714, allocations: 0.921 MB / 436.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.2718, allocations: 165.3 kB / 436.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.2719, allocations: 65.69 kB / 436.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.2719, allocations: 4 kB / 436.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002307/0.2721, allocations: 138.6 kB / 436.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.2721, allocations: 0 / 436.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004488/0.2726, allocations: 229 kB / 437.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.2726, allocations: 81.11 kB / 437.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.2728, allocations: 160.3 kB / 437.3 MB, free: 476 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.2728, allocations: 41.62 kB / 437.3 MB, free: 428 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.2729, allocations: 140.7 kB / 437.5 MB, free: 280 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.769e-05/0.273, allocations: 63.58 kB / 437.5 MB, free: 216 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.2731, allocations: 81.62 kB / 437.6 MB, free: 128 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.2733, allocations: 330.9 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.2734, allocations: 71.75 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.2736, allocations: 132.5 kB / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.2738, allocations: 200.8 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2738, allocations: 4 kB / 438.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003851/0.2742, allocations: 245.3 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2742, allocations: 8 kB / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2742, allocations: 0 / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.2743, allocations: 4 kB / 438.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.2744, allocations: 35.92 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.2744, allocations: 12.2 kB / 438.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.896e-05/0.2745, allocations: 31.78 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.2745, allocations: 12 kB / 438.7 MB, free: 14.98 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.0001633/0.2747, allocations: 165.7 kB / 438.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.2747, allocations: 11.95 kB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.395e-05/0.2748, allocations: 12.94 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2748, allocations: 4 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2748, allocations: 0 / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2748, allocations: 3.984 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.2755, allocations: 0.5508 MB / 439.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2755, allocations: 0 / 439.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.2756, allocations: 27.92 kB / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2756, allocations: 0 / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.2756, allocations: 7.938 kB / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2756, allocations: 0 / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2756, allocations: 0 / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.2759, allocations: 280.1 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.995e-05/0.276, allocations: 15.84 kB / 439.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.276, allocations: 11.94 kB / 439.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.422e-05/0.2761, allocations: 7.984 kB / 439.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.557e-05/0.2761, allocations: 23.91 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.2762, allocations: 8 kB / 439.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.757e-05/0.2762, allocations: 99.27 kB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2762, allocations: 4 kB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000287/0.2765, allocations: 47.89 kB / 440 MB, free: 13.63 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.0006735/0.2772, allocations: 0.8211 MB / 440.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.2775, allocations: 172 kB / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2775, allocations: 0 / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.2776, allocations: 75.72 kB / 441 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.2779, allocations: 19.98 kB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.2803, allocations: 2.066 MB / 443.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.2807, allocations: 0.7365 MB / 443.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.553e-05/0.2808, allocations: 25.92 kB / 443.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2809, allocations: 55.42 kB / 443.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2809, allocations: 4 kB / 443.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03098/0.3119, allocations: 3.784 MB / 447.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.43, allocations: 11.16 kB / 447.7 MB, free: 5.809 MB / 350.1 MB " [Timeout remaining time 648] (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: 13.925873616011813]