Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.269, allocations: 50.56 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002632/0.2716, allocations: 1.663 MB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006041/0.2722, allocations: 291.1 kB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.234e-05/0.2723, allocations: 7.938 kB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.2725, allocations: 31.73 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.87e-05/0.2725, allocations: 11.81 kB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.2729, allocations: 123.8 kB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.2732, allocations: 271.5 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.2735, allocations: 198.9 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.754e-05/0.2736, allocations: 87.72 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.2737, allocations: 107.5 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.2737, allocations: 24 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.855e-05/0.2738, allocations: 24 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.525e-05/0.2739, allocations: 67.77 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.85e-05/0.274, allocations: 99.52 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.2742, allocations: 260.8 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2742, allocations: 3.938 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2743, allocations: 0 / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.2743, allocations: 0 / 412 MB, free: 14.29 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.0006044/0.2749, allocations: 498.5 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2749, allocations: 8.031 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.263e-05/0.275, allocations: 62.72 kB / 412.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.2752, allocations: 36.64 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.2755, allocations: 224.1 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.2755, allocations: 24.92 kB / 412.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.2755, allocations: 28.38 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.276, allocations: 266.6 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.276, allocations: 7.875 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.276, allocations: 16 kB / 413.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.276, allocations: 8 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002785/0.2763, allocations: 161.6 kB / 413.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.2774, allocations: 0.9633 MB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002722/0.2777, allocations: 173.3 kB / 414.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.2778, allocations: 81.69 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.2779, allocations: 4 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.2781, allocations: 136.1 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.2781, allocations: 0 / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003902/0.2785, allocations: 217.2 kB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.2785, allocations: 89.05 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.2787, allocations: 157.8 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.2787, allocations: 33.7 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.73e-05/0.2788, allocations: 144.5 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.675e-05/0.2788, allocations: 63.19 kB / 415.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.395e-05/0.2789, allocations: 77.69 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2791, allocations: 330.8 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.2792, allocations: 63.75 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.2794, allocations: 140.5 kB / 415.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.2796, allocations: 192.3 kB / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.2796, allocations: 4 kB / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003528/0.28, allocations: 257.2 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.28, allocations: 4 kB / 416.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.28, allocations: 4 kB / 416.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.2801, allocations: 4 kB / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.2802, allocations: 31.92 kB / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.2802, allocations: 4 kB / 416.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.028e-05/0.2803, allocations: 27.73 kB / 416.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.2803, allocations: 16 kB / 416.5 MB, free: 9.445 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.0001392/0.2805, allocations: 169.7 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.2805, allocations: 15.89 kB / 416.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.2805, allocations: 16.84 kB / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2806, allocations: 0 / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.2806, allocations: 0 / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2806, allocations: 4 kB / 416.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006824/0.2813, allocations: 0.582 MB / 417.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.2813, allocations: 7.984 kB / 417.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.2814, allocations: 16 kB / 417.3 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.2814, allocations: 7.938 kB / 417.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2814, allocations: 3.938 kB / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2814, allocations: 4 kB / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2814, allocations: 0 / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.2817, allocations: 276 kB / 417.5 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.994e-05/0.2817, allocations: 85.02 kB / 417.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.2818, allocations: 19.92 kB / 417.6 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.46e-05/0.2819, allocations: 8 kB / 417.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.363e-05/0.2819, allocations: 19.97 kB / 417.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.2819, allocations: 4 kB / 417.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.177e-05/0.282, allocations: 98.36 kB / 417.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.282, allocations: 0 / 417.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000286/0.2823, allocations: 59.69 kB / 417.8 MB, free: 7.957 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: 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.000541/0.2828, allocations: 0.8118 MB / 418.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003002/0.2832, allocations: 180 kB / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2832, allocations: 4 kB / 418.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.2833, allocations: 88.38 kB / 418.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.2836, allocations: 31.98 kB / 418.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.2857, allocations: 2.063 MB / 421 MB, free: 4.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.286, allocations: 0.7326 MB / 421.7 MB, free: 3.852 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.269e-05/0.2861, allocations: 25.94 kB / 421.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.637e-05/0.2862, allocations: 59.42 kB / 421.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of SimCode: time 1.573e-06/0.2862, allocations: 0 / 421.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/0.3062, allocations: 3.581 MB / 425.4 MB, free: 280 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.704/8.01, allocations: 7.922 kB / 425.4 MB, free: 272 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches