Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 107.9 kB / 17.06 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 189.4 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 47.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2671, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003149/0.2703, allocations: 1.691 MB / 401.9 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007723/0.2711, allocations: 295 kB / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.918e-05/0.2712, allocations: 7.938 kB / 402.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.2714, allocations: 31.67 kB / 402.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.781e-05/0.2715, allocations: 11.81 kB / 402.2 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004364/0.2719, allocations: 123.8 kB / 402.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.2723, allocations: 275.4 kB / 402.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000373/0.2727, allocations: 182.9 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.2728, allocations: 91.7 kB / 402.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.273, allocations: 99.53 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.61e-05/0.2731, allocations: 24 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.753e-05/0.2732, allocations: 31.98 kB / 403.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.416e-05/0.2732, allocations: 51.84 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.2734, allocations: 103.5 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.2737, allocations: 257.9 kB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2737, allocations: 0 / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2738, allocations: 0 / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.2738, allocations: 4 kB / 403.5 MB, free: 5.562 MB / 318.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.0008038/0.2746, allocations: 0.4945 MB / 404 MB, free: 5.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.2746, allocations: 8.031 kB / 404 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.442e-05/0.2747, allocations: 58.73 kB / 404 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.389e-05/0.2748, allocations: 24.8 kB / 404 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003331/0.2751, allocations: 228.1 kB / 404.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.2752, allocations: 24.94 kB / 404.3 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.2752, allocations: 24.38 kB / 404.3 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005/0.2757, allocations: 278.5 kB / 404.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.2758, allocations: 7.938 kB / 404.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.2758, allocations: 8 kB / 404.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.2758, allocations: 8 kB / 404.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000333/0.2762, allocations: 165.6 kB / 404.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.2775, allocations: 0.9752 MB / 405.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.2778, allocations: 173.4 kB / 405.9 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.278, allocations: 89.56 kB / 406 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.278, allocations: 4 kB / 406 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.2782, allocations: 133.1 kB / 406.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.944e-06/0.2783, allocations: 4 kB / 406.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004755/0.2787, allocations: 219 kB / 406.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.2788, allocations: 85.09 kB / 406.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.279, allocations: 149.7 kB / 406.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.279, allocations: 45.69 kB / 406.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.84e-05/0.2791, allocations: 132.8 kB / 406.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.25e-05/0.2792, allocations: 67.47 kB / 406.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.2793, allocations: 81.8 kB / 406.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.2795, allocations: 338.7 kB / 407.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.2796, allocations: 63.97 kB / 407.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.2798, allocations: 140.2 kB / 407.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.2801, allocations: 204.8 kB / 407.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2801, allocations: 0 / 407.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004257/0.2805, allocations: 245.3 kB / 407.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.2806, allocations: 8 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.2806, allocations: 3.984 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2806, allocations: 4 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.2808, allocations: 48.14 kB / 407.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.2808, allocations: 4 kB / 407.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.2809, allocations: 23.84 kB / 408 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.2809, allocations: 19.98 kB / 408 MB, free: 0.6797 MB / 318.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.0001669/0.2811, allocations: 161.6 kB / 408.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.118e-05/0.2812, allocations: 15.91 kB / 408.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.2815, allocations: 194.3 kB / 408.3 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.2815, allocations: 4 kB / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2815, allocations: 4 kB / 408.4 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2816, allocations: 0 / 408.4 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008113/0.2824, allocations: 0.5909 MB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2824, allocations: 0 / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.2825, allocations: 19.98 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.2825, allocations: 7.938 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.2825, allocations: 0 / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2825, allocations: 3.938 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2825, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.2829, allocations: 288 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.283, allocations: 93 kB / 409.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.283, allocations: 15.86 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-05/0.2831, allocations: 8 kB / 409.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.447e-05/0.2832, allocations: 19.97 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.2832, allocations: 8 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.031e-05/0.2833, allocations: 101.4 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2833, allocations: 0 / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.2836, allocations: 55.84 kB / 409.6 MB, free: 14.99 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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0007392/0.2844, allocations: 0.8385 MB / 410.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003881/0.2848, allocations: 188 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2848, allocations: 0 / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.2849, allocations: 83.91 kB / 410.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.2852, allocations: 23.98 kB / 410.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.2877, allocations: 2.078 MB / 412.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.2882, allocations: 0.7402 MB / 413.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.706e-05/0.2883, allocations: 21.95 kB / 413.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.2884, allocations: 67.34 kB / 413.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of SimCode: time 1.333e-06/0.2885, allocations: 0 / 413.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.3146, allocations: 3.722 MB / 417.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.469, allocations: 11.27 kB / 417.3 MB, free: 7.109 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches