Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001233/0.001233, allocations: 104.7 kB / 17.15 MB, free: 6.305 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.00126/0.00126, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001154, allocations: 47.94 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07546/0.07662, allocations: 46.63 MB / 326.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002855/0.07951, allocations: 1.748 MB / 328.4 MB, free: 3.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006579/0.0802, allocations: 283 kB / 328.7 MB, free: 2.758 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.08034, allocations: 4 kB / 328.7 MB, free: 2.754 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.0805, allocations: 15.81 kB / 328.7 MB, free: 2.738 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.345e-05/0.08056, allocations: 11.92 kB / 328.7 MB, free: 2.727 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.08094, allocations: 99.91 kB / 328.8 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002886/0.08124, allocations: 263.4 kB / 329.1 MB, free: 2.371 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000281/0.08152, allocations: 179.1 kB / 329.3 MB, free: 2.191 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.946e-05/0.08163, allocations: 87.69 kB / 329.4 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.08176, allocations: 87.61 kB / 329.4 MB, free: 2.02 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.0818, allocations: 16 kB / 329.5 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.038e-05/0.08188, allocations: 27.98 kB / 329.5 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.566e-05/0.08194, allocations: 55.83 kB / 329.5 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.845e-05/0.08203, allocations: 91.47 kB / 329.6 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.08228, allocations: 223.5 kB / 329.8 MB, free: 1.613 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.08229, allocations: 0 / 329.8 MB, free: 1.613 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.0823, allocations: 0 / 329.8 MB, free: 1.613 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.08231, allocations: 0 / 329.8 MB, free: 1.613 MB / 270.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.0005951/0.0829, allocations: 494.1 kB / 330.3 MB, free: 1.078 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.08295, allocations: 8.031 kB / 330.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.31e-05/0.08302, allocations: 66.66 kB / 330.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.334e-05/0.08308, allocations: 28.66 kB / 330.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.0833, allocations: 224.1 kB / 330.6 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.08334, allocations: 28.92 kB / 330.7 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.08338, allocations: 28.38 kB / 330.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.08377, allocations: 270.5 kB / 331 MB, free: 376 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.08379, allocations: 3.938 kB / 331 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.08382, allocations: 8 kB / 331 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.08383, allocations: 8 kB / 331 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002663/0.0841, allocations: 169.6 kB / 331.2 MB, free: 188 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009483/0.08506, allocations: 0.9672 MB / 332.1 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.08532, allocations: 166.7 kB / 332.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.08544, allocations: 72.78 kB / 332.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.08546, allocations: 0 / 332.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002307/0.0857, allocations: 111.3 kB / 332.5 MB, free: 14.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.263e-06/0.08571, allocations: 0 / 332.5 MB, free: 14.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003902/0.08611, allocations: 217.3 kB / 332.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.08615, allocations: 55.41 kB / 332.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.08626, allocations: 161.8 kB / 332.9 MB, free: 14.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.0863, allocations: 33.7 kB / 332.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.099e-05/0.08638, allocations: 148.4 kB / 333.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.08643, allocations: 55.36 kB / 333.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.08653, allocations: 73.92 kB / 333.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.08664, allocations: 338.7 kB / 333.5 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.08676, allocations: 64.62 kB / 333.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.08691, allocations: 145.7 kB / 333.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.08714, allocations: 192.3 kB / 333.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.08715, allocations: 0 / 333.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003333/0.08749, allocations: 253.2 kB / 334.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.08751, allocations: 4 kB / 334.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.08752, allocations: 4 kB / 334.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.08754, allocations: 4 kB / 334.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.08767, allocations: 31.92 kB / 334.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.08769, allocations: 11.94 kB / 334.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.266e-05/0.08778, allocations: 23.78 kB / 334.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.08782, allocations: 16.27 kB / 334.3 MB, free: 12.87 MB / 286.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: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,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,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 (40): * Single equations (assignments): 40 * 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.0001291/0.08795, allocations: 156.3 kB / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.08798, allocations: 15.81 kB / 334.4 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.08829, allocations: 190.7 kB / 334.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.08831, allocations: 7.984 kB / 334.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.08832, allocations: 0 / 334.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.08832, allocations: 0 / 334.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006217/0.08895, allocations: 0.5988 MB / 335.2 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.08896, allocations: 0 / 335.2 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.96e-05/0.08904, allocations: 23.86 kB / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.08905, allocations: 0 / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.08907, allocations: 8 kB / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.08907, allocations: 0 / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.08908, allocations: 0 / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.08935, allocations: 279.2 kB / 335.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.157e-05/0.0894, allocations: 92.89 kB / 335.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.08943, allocations: 7.938 kB / 335.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-05/0.08952, allocations: 11.98 kB / 335.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/0.08959, allocations: 15.98 kB / 335.6 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.08961, allocations: 11.98 kB / 335.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.874e-05/0.08966, allocations: 96.39 kB / 335.8 MB, free: 11.26 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08967, allocations: 0 / 335.8 MB, free: 11.26 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002862/0.08996, allocations: 55.75 kB / 335.8 MB, free: 11.2 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0005427/0.09051, allocations: 0.8218 MB / 336.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.0908, allocations: 187.7 kB / 336.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.09081, allocations: 0.5625 kB / 336.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.09093, allocations: 79.86 kB / 336.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.09122, allocations: 27.97 kB / 336.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.09318, allocations: 2.101 MB / 339 MB, free: 7.828 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.09342, allocations: 0.7401 MB / 339.8 MB, free: 7.062 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.929e-05/0.09351, allocations: 29.95 kB / 339.8 MB, free: 7.035 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.751e-05/0.09361, allocations: 63.62 kB / 339.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of SimCode: time 3.91e-07/0.09362, allocations: 0 / 339.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01213/0.1058, allocations: 3.403 MB / 343.3 MB, free: 3.543 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.106, allocations: 210.7 kB / 343.5 MB, free: 3.277 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.748, allocations: 7.938 kB / 343.5 MB, free: 3.27 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches