Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 194.2 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 43.92 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2541, allocations: 52.18 MB / 422.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003029/0.2571, allocations: 1.686 MB / 424.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007707/0.2579, allocations: 303 kB / 424.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.519e-05/0.258, allocations: 0 / 424.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.2581, allocations: 27.67 kB / 424.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.287e-05/0.2582, allocations: 23.8 kB / 424.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.2586, allocations: 123.8 kB / 424.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.259, allocations: 275.5 kB / 425 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002835/0.2593, allocations: 143.7 kB / 425.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.2594, allocations: 91.7 kB / 425.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001797/0.2596, allocations: 87.53 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.195e-05/0.2596, allocations: 20 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.995e-05/0.2597, allocations: 32 kB / 425.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.98e-05/0.2598, allocations: 71.75 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.2599, allocations: 75.66 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.2602, allocations: 258.9 kB / 425.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2602, allocations: 0 / 425.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2602, allocations: 0 / 425.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2602, allocations: 0 / 425.7 MB, free: 11.21 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.0007747/0.261, allocations: 432.2 kB / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.2611, allocations: 8.031 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.74e-05/0.2612, allocations: 62.72 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.2612, allocations: 24.8 kB / 426.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.2616, allocations: 174.2 kB / 426.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.2616, allocations: 24.88 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.2616, allocations: 28.36 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.2621, allocations: 265.8 kB / 426.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.2621, allocations: 7.875 kB / 426.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.2621, allocations: 12 kB / 426.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.2622, allocations: 4 kB / 426.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003143/0.2625, allocations: 165.6 kB / 426.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.2637, allocations: 0.8859 MB / 427.8 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.264, allocations: 165.3 kB / 428 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.2641, allocations: 69.78 kB / 428 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.2641, allocations: 0 / 428 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.2644, allocations: 152.4 kB / 428.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.303e-06/0.2644, allocations: 0 / 428.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004563/0.2648, allocations: 221.3 kB / 428.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.2649, allocations: 89.05 kB / 428.5 MB, free: 8.246 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.265, allocations: 157.6 kB / 428.6 MB, free: 8.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.2651, allocations: 37.7 kB / 428.7 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.2652, allocations: 140.9 kB / 428.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.776e-05/0.2653, allocations: 67.47 kB / 428.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.2654, allocations: 77.69 kB / 428.9 MB, free: 7.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2655, allocations: 334.8 kB / 429.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.2656, allocations: 59.97 kB / 429.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.2658, allocations: 136.5 kB / 429.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002788/0.2661, allocations: 192.3 kB / 429.7 MB, free: 6.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2661, allocations: 4 kB / 429.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004057/0.2665, allocations: 261.8 kB / 429.9 MB, free: 6.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2665, allocations: 7.094 kB / 429.9 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2665, allocations: 8 kB / 429.9 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.2666, allocations: 4 kB / 429.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.2667, allocations: 31.92 kB / 430 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.2667, allocations: 4 kB / 430 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.2668, allocations: 39.77 kB / 430 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.2669, allocations: 8 kB / 430 MB, free: 6.605 MB / 334.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.0001722/0.267, allocations: 161.7 kB / 430.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.2671, allocations: 15.89 kB / 430.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003572/0.2674, allocations: 190.5 kB / 430.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.2674, allocations: 8 kB / 430.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2674, allocations: 0 / 430.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.2674, allocations: 3.984 kB / 430.4 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008113/0.2682, allocations: 0.5548 MB / 430.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.2682, allocations: 0 / 430.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.588e-05/0.2683, allocations: 19.92 kB / 431 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.2683, allocations: 3.938 kB / 431 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.2683, allocations: 8 kB / 431 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2684, allocations: 0 / 431 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2684, allocations: 0 / 431 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.2687, allocations: 300.4 kB / 431.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.237e-05/0.2687, allocations: 19.84 kB / 431.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.2688, allocations: 11.92 kB / 431.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.327e-05/0.2689, allocations: 15.88 kB / 431.3 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.2689, allocations: 15.97 kB / 431.3 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.269, allocations: 15.98 kB / 431.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.699e-05/0.269, allocations: 102.8 kB / 431.4 MB, free: 5.086 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.269, allocations: 0 / 431.4 MB, free: 5.086 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003245/0.2694, allocations: 51.89 kB / 431.5 MB, free: 5.035 MB / 334.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: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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.0007304/0.2701, allocations: 0.83 MB / 432.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003599/0.2705, allocations: 175.8 kB / 432.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2705, allocations: 0 / 432.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.2706, allocations: 80.22 kB / 432.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.2709, allocations: 20 kB / 432.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.2735, allocations: 2.075 MB / 434.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.2736, allocations: 125.3 kB / 434.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.46e-05/0.2737, allocations: 25.94 kB / 434.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.2738, allocations: 63.42 kB / 434.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2738, allocations: 0 / 434.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03065/0.3045, allocations: 4.376 MB / 439.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.73, allocations: 8 kB / 439.3 MB, free: 13.21 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 13.043522241991013]