Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001335/0.001335, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 67.89 kB / 377.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2529, allocations: 53.41 MB / 431.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003031/0.2559, allocations: 1.695 MB / 432.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006847/0.2566, allocations: 287.2 kB / 433.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.306e-05/0.2567, allocations: 7.938 kB / 433.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.2568, allocations: 31.67 kB / 433.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.299e-05/0.2568, allocations: 15.8 kB / 433.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.2572, allocations: 119.8 kB / 433.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003178/0.2575, allocations: 279.4 kB / 433.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.2578, allocations: 151.6 kB / 433.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.2579, allocations: 99.62 kB / 433.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.258, allocations: 83.55 kB / 433.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.2581, allocations: 24 kB / 433.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.262e-05/0.2582, allocations: 24 kB / 433.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.911e-05/0.2582, allocations: 67.81 kB / 434 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.799e-05/0.2583, allocations: 79.59 kB / 434 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.2586, allocations: 262.9 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2586, allocations: 0 / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2586, allocations: 3.938 kB / 434.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2586, allocations: 4 kB / 434.3 MB, free: 3.246 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.0006395/0.2593, allocations: 413.2 kB / 434.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.2593, allocations: 15.98 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.543e-05/0.2594, allocations: 58.72 kB / 434.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.2596, allocations: 32.78 kB / 434.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.2599, allocations: 174.2 kB / 435 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.2599, allocations: 24.88 kB / 435 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.626e-05/0.26, allocations: 28.38 kB / 435 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004543/0.2604, allocations: 269.7 kB / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.2604, allocations: 3.938 kB / 435.3 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.2604, allocations: 8 kB / 435.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.2605, allocations: 7.938 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.2608, allocations: 161.6 kB / 435.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.2619, allocations: 0.8742 MB / 436.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002884/0.2622, allocations: 164.7 kB / 436.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.2623, allocations: 65.78 kB / 436.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2623, allocations: 7.938 kB / 436.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.2625, allocations: 140.1 kB / 436.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.2625, allocations: 0 / 436.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004308/0.263, allocations: 221.3 kB / 436.9 MB, free: 436 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.263, allocations: 89.09 kB / 437 MB, free: 328 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.2632, allocations: 153.7 kB / 437.2 MB, free: 164 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.2632, allocations: 41.81 kB / 437.2 MB, free: 116 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.2633, allocations: 144.8 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.2634, allocations: 59.53 kB / 437.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.2635, allocations: 89.41 kB / 437.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2636, allocations: 326.8 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.2637, allocations: 67.97 kB / 437.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.2639, allocations: 136.5 kB / 438 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.2642, allocations: 196.3 kB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2642, allocations: 4 kB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003805/0.2646, allocations: 249.3 kB / 438.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.2646, allocations: 4.281 kB / 438.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2646, allocations: 8 kB / 438.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2646, allocations: 4 kB / 438.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2647, allocations: 35.86 kB / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.2647, allocations: 7.984 kB / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.2648, allocations: 27.78 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.2649, allocations: 16 kB / 438.6 MB, free: 14.68 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.0001448/0.265, allocations: 154.4 kB / 438.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.265, allocations: 15.95 kB / 438.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.2651, allocations: 16.88 kB / 438.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2651, allocations: 11.94 kB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2651, allocations: 0 / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.2651, allocations: 7.984 kB / 438.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007702/0.2659, allocations: 0.532 MB / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2659, allocations: 0 / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.895e-05/0.266, allocations: 23.92 kB / 439.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.266, allocations: 0 / 439.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.266, allocations: 7.938 kB / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.266, allocations: 0 / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.266, allocations: 0 / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003396/0.2663, allocations: 280.1 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.023e-05/0.2663, allocations: 19.78 kB / 439.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.2664, allocations: 11.94 kB / 439.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.322e-05/0.2665, allocations: 11.98 kB / 439.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.2665, allocations: 19.97 kB / 439.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.2665, allocations: 4 kB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.055e-05/0.2666, allocations: 99.27 kB / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2666, allocations: 0 / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.2669, allocations: 47.89 kB / 439.8 MB, free: 13.34 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.000708/0.2676, allocations: 0.8223 MB / 440.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003197/0.2679, allocations: 168.3 kB / 440.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2679, allocations: 4 kB / 440.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.2681, allocations: 71.72 kB / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.2684, allocations: 26.73 kB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.2707, allocations: 2.055 MB / 443 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001213/0.2709, allocations: 121.6 kB / 443.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.808e-05/0.271, allocations: 25.94 kB / 443.1 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.2711, allocations: 59.42 kB / 443.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2711, allocations: 0 / 443.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03037/0.3014, allocations: 4.13 MB / 447.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.24, allocations: 3.797 kB / 447.3 MB, free: 5.789 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.644938812125474]