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.001369/0.001369, allocations: 117.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 200.6 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.339/1.339, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.271, allocations: 50.55 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002468/0.2735, allocations: 1.666 MB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006265/0.2741, allocations: 299.1 kB / 410.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.597e-05/0.2742, allocations: 4 kB / 410.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.2744, allocations: 27.67 kB / 410.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.991e-05/0.2744, allocations: 15.8 kB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.2748, allocations: 119.8 kB / 410.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002772/0.2751, allocations: 271.6 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.2753, allocations: 190.9 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.783e-05/0.2755, allocations: 103.6 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.2756, allocations: 95.55 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.2756, allocations: 24 kB / 411.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.801e-05/0.2757, allocations: 27.98 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.202e-05/0.2757, allocations: 59.83 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.265e-05/0.2758, allocations: 99.52 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.2761, allocations: 256.8 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2761, allocations: 11.94 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2761, allocations: 0 / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2762, allocations: 3.938 kB / 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.0006394/0.2768, allocations: 494.6 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2769, allocations: 8.031 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.583e-05/0.2769, allocations: 66.66 kB / 412.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.2771, allocations: 32.64 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.2774, allocations: 220.2 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.2774, allocations: 24.94 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.2775, allocations: 32.36 kB / 412.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.2779, allocations: 266.5 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2779, allocations: 3.938 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.278, allocations: 15.98 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.278, allocations: 8 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.2783, allocations: 169.6 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.2794, allocations: 0.9555 MB / 414.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/0.2796, allocations: 177.3 kB / 414.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.2798, allocations: 77.7 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.2798, allocations: 0 / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.28, allocations: 144 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.233e-06/0.28, allocations: 0 / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003979/0.2804, allocations: 225.2 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.2805, allocations: 85.09 kB / 414.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.2806, allocations: 153.6 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.2806, allocations: 33.7 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.144e-05/0.2807, allocations: 144.5 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/0.2808, allocations: 63.33 kB / 415.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.325e-05/0.2809, allocations: 77.69 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.281, allocations: 326.8 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.2811, allocations: 67.77 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.2812, allocations: 144.5 kB / 415.9 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.2815, allocations: 192.3 kB / 416.1 MB, free: 9.781 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.2815, allocations: 4 kB / 416.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003966/0.2819, allocations: 249.2 kB / 416.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.282, allocations: 6.656 kB / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.282, allocations: 8.281 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.282, allocations: 4 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.2822, allocations: 31.92 kB / 416.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.2822, allocations: 7.938 kB / 416.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.2823, allocations: 23.75 kB / 416.4 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.2823, allocations: 19.98 kB / 416.5 MB, free: 9.43 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.0001642/0.2825, allocations: 165.6 kB / 416.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/0.2825, allocations: 11.91 kB / 416.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.2826, allocations: 24.83 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.2826, allocations: 4 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.2826, allocations: 0 / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.2826, allocations: 4 kB / 416.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007633/0.2834, allocations: 0.5781 MB / 417.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2834, allocations: 4 kB / 417.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.558e-05/0.2835, allocations: 23.86 kB / 417.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2835, allocations: 4 kB / 417.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.2835, allocations: 3.938 kB / 417.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2835, allocations: 8 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2835, allocations: 0 / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/0.2838, allocations: 272 kB / 417.5 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.262e-05/0.2839, allocations: 85.02 kB / 417.6 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.2839, allocations: 11.94 kB / 417.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.844e-05/0.284, allocations: 11.98 kB / 417.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.2841, allocations: 23.92 kB / 417.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.2841, allocations: 7.984 kB / 417.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.949e-05/0.2842, allocations: 102.4 kB / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2842, allocations: 0 / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.2845, allocations: 59.69 kB / 417.8 MB, free: 7.934 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.0005867/0.2851, allocations: 0.8079 MB / 418.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003521/0.2855, allocations: 176.1 kB / 418.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2855, allocations: 0 / 418.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.2856, allocations: 91.77 kB / 418.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.286, allocations: 23.94 kB / 418.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.288, allocations: 2.067 MB / 421 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.2883, allocations: 0.7326 MB / 421.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.96e-05/0.2884, allocations: 25.94 kB / 421.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.2885, allocations: 63.42 kB / 421.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2885, allocations: 0 / 421.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.3066, allocations: 3.578 MB / 425.4 MB, free: 264 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.823, allocations: 15.25 kB / 425.4 MB, free: 252 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