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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 199.8 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2622, allocations: 50.55 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003163/0.2654, allocations: 1.698 MB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007425/0.2661, allocations: 295.1 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.2663, allocations: 3.938 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.2664, allocations: 23.69 kB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.736e-05/0.2665, allocations: 27.78 kB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.2669, allocations: 115.8 kB / 410.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003227/0.2672, allocations: 267.5 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002952/0.2675, allocations: 193.4 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.2677, allocations: 91.7 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.2678, allocations: 103.5 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.313e-05/0.2678, allocations: 24 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.313e-05/0.2679, allocations: 24 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.314e-05/0.268, allocations: 59.78 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2681, allocations: 111.5 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.2684, allocations: 248.8 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2684, allocations: 4 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2684, allocations: 0 / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2684, allocations: 0 / 412 MB, free: 14.3 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.0006994/0.2691, allocations: 494.6 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2692, allocations: 12.03 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.911e-05/0.2692, allocations: 54.73 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002054/0.2695, allocations: 28.73 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.2698, allocations: 236 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.055e-05/0.2698, allocations: 28.92 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.2699, allocations: 28.38 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.2703, allocations: 266.6 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2703, allocations: 7.875 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.2703, allocations: 4 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.2704, allocations: 12 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.2706, allocations: 161.6 kB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2717, allocations: 0.9555 MB / 414.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.272, allocations: 177.4 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.2722, allocations: 81.69 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.2722, allocations: 4 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.2724, allocations: 136.1 kB / 414.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.155e-06/0.2724, allocations: 0 / 414.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003934/0.2728, allocations: 221.2 kB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/0.2729, allocations: 85.05 kB / 414.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.273, allocations: 157.1 kB / 415.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.273, allocations: 37.69 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.214e-05/0.2731, allocations: 140.6 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.2731, allocations: 63.25 kB / 415.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.914e-05/0.2732, allocations: 77.47 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.2733, allocations: 334.7 kB / 415.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.2735, allocations: 63.97 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.2737, allocations: 140.5 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.2739, allocations: 196.3 kB / 416.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2739, allocations: 0 / 416.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003786/0.2743, allocations: 249.4 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.2743, allocations: 12.03 kB / 416.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.2743, allocations: 0 / 416.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.2744, allocations: 4 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.2745, allocations: 35.92 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.2746, allocations: 4 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2747, allocations: 31.67 kB / 416.4 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2747, allocations: 16 kB / 416.5 MB, free: 9.469 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.0001312/0.2748, allocations: 165.6 kB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.223e-05/0.2748, allocations: 15.89 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.2749, allocations: 20.84 kB / 416.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2749, allocations: 4 kB / 416.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2749, allocations: 0 / 416.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2749, allocations: 0 / 416.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006384/0.2756, allocations: 0.5781 MB / 417.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2756, allocations: 3.984 kB / 417.2 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.83e-05/0.2757, allocations: 12 kB / 417.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.2757, allocations: 0 / 417.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.2757, allocations: 15.94 kB / 417.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.2757, allocations: 0 / 417.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2757, allocations: 0 / 417.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.276, allocations: 272.1 kB / 417.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.2761, allocations: 92.86 kB / 417.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.2761, allocations: 15.92 kB / 417.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.211e-05/0.2762, allocations: 8 kB / 417.7 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.2763, allocations: 19.97 kB / 417.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.2763, allocations: 12 kB / 417.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.893e-05/0.2763, allocations: 95.27 kB / 417.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2763, allocations: 0 / 417.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.2766, allocations: 51.84 kB / 417.8 MB, free: 7.988 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,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.0005194/0.2772, allocations: 0.8117 MB / 418.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002915/0.2775, allocations: 183.9 kB / 418.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2775, allocations: 4 kB / 418.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.2776, allocations: 83.83 kB / 418.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.2779, allocations: 28.53 kB / 418.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.28, allocations: 2.059 MB / 421 MB, free: 4.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.2803, allocations: 0.7326 MB / 421.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.84e-05/0.2804, allocations: 21.95 kB / 421.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.2805, allocations: 67.34 kB / 421.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2805, allocations: 0 / 421.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.3004, allocations: 3.533 MB / 425.3 MB, free: 360 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/7.951, allocations: 19.8 kB / 425.4 MB, free: 344 kB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches