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.002264/0.002264, allocations: 114.8 kB / 17.06 MB, free: 5.812 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.003052/0.003052, allocations: 200 kB / 18 MB, free: 4.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.917/2.917, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 55.91 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.487/0.4888, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.005079/0.494, allocations: 1.691 MB / 401.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.4952, allocations: 291.3 kB / 402.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.4954, allocations: 4 kB / 402.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.4957, allocations: 31.61 kB / 402.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.4958, allocations: 15.8 kB / 402.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.4964, allocations: 115.8 kB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005306/0.497, allocations: 267.5 kB / 402.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004728/0.4975, allocations: 189.5 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.4977, allocations: 87.7 kB / 402.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.4979, allocations: 107.5 kB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.789e-05/0.4979, allocations: 28 kB / 403 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.951e-05/0.4981, allocations: 28 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.866e-05/0.4982, allocations: 55.89 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.4983, allocations: 103.5 kB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.4987, allocations: 252.8 kB / 403.4 MB, free: 5.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.4987, allocations: 0 / 403.4 MB, free: 5.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4988, allocations: 0 / 403.4 MB, free: 5.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.4988, allocations: 0 / 403.4 MB, free: 5.559 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.0009494/0.4997, allocations: 498.6 kB / 403.9 MB, free: 5.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.4998, allocations: 12.03 kB / 403.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.917e-05/0.4999, allocations: 62.72 kB / 404 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.6e-05/0.5, allocations: 20.75 kB / 404 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004221/0.5004, allocations: 235.9 kB / 404.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.092e-05/0.5005, allocations: 24.94 kB / 404.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.5005, allocations: 28.38 kB / 404.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.5012, allocations: 282.5 kB / 404.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.5012, allocations: 3.938 kB / 404.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.5013, allocations: 8 kB / 404.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.5013, allocations: 8 kB / 404.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004177/0.5017, allocations: 161.6 kB / 404.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.5033, allocations: 0.9672 MB / 405.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004583/0.5038, allocations: 185.3 kB / 405.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.5039, allocations: 79.02 kB / 406 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.504, allocations: 7.984 kB / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.5043, allocations: 140.7 kB / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.954e-06/0.5043, allocations: 0 / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.000573/0.5049, allocations: 217.3 kB / 406.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.5049, allocations: 89.23 kB / 406.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.5051, allocations: 151.5 kB / 406.6 MB, free: 2.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.5051, allocations: 37.7 kB / 406.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.5053, allocations: 144.5 kB / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.679e-05/0.5054, allocations: 55.25 kB / 406.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.5055, allocations: 81.67 kB / 406.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5057, allocations: 330.8 kB / 407.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.5058, allocations: 67.91 kB / 407.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.5061, allocations: 140.3 kB / 407.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.5064, allocations: 200.8 kB / 407.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.5064, allocations: 0 / 407.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005535/0.507, allocations: 257.2 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.507, allocations: 8 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.507, allocations: 0 / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.5071, allocations: 4 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.5073, allocations: 31.92 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.5073, allocations: 7.938 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.5075, allocations: 35.67 kB / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.5075, allocations: 8.281 kB / 408 MB, free: 0.6914 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.0002007/0.5077, allocations: 165.7 kB / 408.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.5078, allocations: 11.91 kB / 408.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004584/0.5082, allocations: 190.3 kB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.5083, allocations: 7.938 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.5083, allocations: 0 / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.5083, allocations: 3.984 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009985/0.5093, allocations: 0.5908 MB / 408.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.5093, allocations: 7.938 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.6e-05/0.5094, allocations: 12 kB / 408.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.5094, allocations: 3.938 kB / 408.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.5095, allocations: 11.98 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.5095, allocations: 0 / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.5095, allocations: 0 / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004634/0.51, allocations: 295.8 kB / 409.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.801e-05/0.5101, allocations: 88.95 kB / 409.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.5101, allocations: 11.94 kB / 409.3 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.5102, allocations: 11.98 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.14e-05/0.5103, allocations: 15.98 kB / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.5104, allocations: 11.98 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.164e-05/0.5105, allocations: 95.27 kB / 409.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5105, allocations: 4 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.511, allocations: 47.84 kB / 409.5 MB, free: 15.01 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.0009637/0.5119, allocations: 0.8346 MB / 410.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004678/0.5124, allocations: 196.3 kB / 410.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5124, allocations: 4.125 kB / 410.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.5126, allocations: 87.89 kB / 410.6 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.0004082/0.513, allocations: 23.97 kB / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003183/0.5162, allocations: 2.078 MB / 412.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.5167, allocations: 0.7402 MB / 413.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.5168, allocations: 21.94 kB / 413.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.517, allocations: 63.41 kB / 413.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.545e-06/0.517, allocations: 4 kB / 413.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04946/0.5664, allocations: 3.781 MB / 417.3 MB, free: 7.059 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.11, allocations: 4.562 kB / 417.4 MB, free: 7.055 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