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.001186/0.001186, 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.001284/0.001284, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2742, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003102/0.2774, allocations: 1.694 MB / 410.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007138/0.2781, allocations: 295.1 kB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2782, allocations: 4 kB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.2784, allocations: 27.67 kB / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.714e-05/0.2785, allocations: 19.8 kB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.2788, allocations: 115.8 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.2792, allocations: 267.5 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.2795, allocations: 193.5 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.2796, allocations: 87.7 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.2798, allocations: 103.5 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.633e-05/0.2798, allocations: 24 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.281e-05/0.2799, allocations: 27.98 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.701e-05/0.28, allocations: 59.83 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2801, allocations: 99.47 kB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.2804, allocations: 256.8 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2804, allocations: 3.938 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2804, allocations: 0 / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.2804, allocations: 0 / 412 MB, free: 14.27 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.0006571/0.2811, allocations: 0.4908 MB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2811, allocations: 8.031 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.954e-05/0.2812, allocations: 62.72 kB / 412.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002051/0.2814, allocations: 28.73 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.2817, allocations: 228 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.2818, allocations: 28.92 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.2818, allocations: 24.38 kB / 412.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004139/0.2822, allocations: 270.6 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2822, allocations: 3.938 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.2823, allocations: 12 kB / 413.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2823, allocations: 11.94 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002757/0.2826, allocations: 165.6 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.2837, allocations: 0.9555 MB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/0.284, allocations: 177.4 kB / 414.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.2841, allocations: 81.69 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.2841, allocations: 0 / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.2843, allocations: 136.1 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.2843, allocations: 0 / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004001/0.2847, allocations: 217.4 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.2848, allocations: 85.11 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.2849, allocations: 149.6 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.285, allocations: 37.7 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.806e-05/0.2851, allocations: 144.4 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.008e-05/0.2851, allocations: 59.25 kB / 415.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-05/0.2852, allocations: 85.41 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2853, allocations: 334.8 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.2855, allocations: 59.98 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.2856, allocations: 140.5 kB / 415.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000246/0.2859, allocations: 192.3 kB / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2859, allocations: 0 / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000361/0.2863, allocations: 253.2 kB / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.2863, allocations: 4 kB / 416.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.2863, allocations: 4 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.2863, allocations: 4 kB / 416.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.2865, allocations: 35.86 kB / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.2865, allocations: 8 kB / 416.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.2866, allocations: 35.95 kB / 416.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.2866, allocations: 16 kB / 416.5 MB, free: 9.438 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.0001444/0.2868, allocations: 161.6 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.2868, allocations: 11.91 kB / 416.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.757e-05/0.2869, allocations: 24.77 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.2869, allocations: 0 / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.2869, allocations: 4 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2869, allocations: 0 / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/0.2876, allocations: 0.582 MB / 417.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2876, allocations: 4 kB / 417.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.054e-05/0.2877, allocations: 15.98 kB / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.2877, allocations: 4 kB / 417.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.2877, allocations: 3.938 kB / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2877, allocations: 4 kB / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2877, allocations: 0 / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002856/0.288, allocations: 276.1 kB / 417.5 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.846e-05/0.288, allocations: 92.86 kB / 417.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.2881, allocations: 11.94 kB / 417.6 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.263e-05/0.2882, allocations: 7.984 kB / 417.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/0.2882, allocations: 15.98 kB / 417.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.2883, allocations: 11.98 kB / 417.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.279e-05/0.2883, allocations: 99.27 kB / 417.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2883, allocations: 0 / 417.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003886/0.2887, allocations: 51.84 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,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.0005545/0.2893, allocations: 0.8156 MB / 418.6 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003439/0.2896, allocations: 188.4 kB / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2897, allocations: 0 / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.2898, allocations: 87.83 kB / 418.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.2902, allocations: 16 kB / 418.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.2922, allocations: 2.063 MB / 421 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.2925, allocations: 0.7326 MB / 421.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.829e-05/0.2926, allocations: 21.94 kB / 421.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.988e-05/0.2927, allocations: 59.42 kB / 421.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2927, allocations: 4 kB / 421.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.3137, allocations: 3.538 MB / 425.3 MB, free: 328 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.585/7.898, allocations: 10.98 kB / 425.4 MB, free: 320 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