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.001048/0.001048, allocations: 89.94 kB / 16.65 MB, free: 6.594 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.0012/0.0012, allocations: 181.8 kB / 17.56 MB, free: 6.203 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.524/1.524, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002715, allocations: 4 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 50.41 MB / 351.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00226/0.1194, allocations: 1.436 MB / 353.4 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008736/0.1204, allocations: 303 kB / 353.7 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.1206, allocations: 8 kB / 353.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.1207, allocations: 23.8 kB / 353.7 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.782e-05/0.1208, allocations: 7.922 kB / 353.7 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004987/0.1213, allocations: 107.8 kB / 353.8 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004172/0.1218, allocations: 247.5 kB / 354 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003911/0.1222, allocations: 165.9 kB / 354.2 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.1223, allocations: 75.7 kB / 354.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.1225, allocations: 79.55 kB / 354.4 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.678e-05/0.1225, allocations: 12 kB / 354.4 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.59e-05/0.1226, allocations: 16 kB / 354.4 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.264e-05/0.1227, allocations: 47.83 kB / 354.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.1228, allocations: 109.2 kB / 354.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002745/0.1231, allocations: 207.5 kB / 354.7 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1231, allocations: 4 kB / 354.7 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1231, allocations: 0 / 354.7 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1231, allocations: 0 / 354.7 MB, free: 0.7734 MB / 286.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.0006916/0.1238, allocations: 442.8 kB / 355.2 MB, free: 292 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.1239, allocations: 16.03 kB / 355.2 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.122e-05/0.124, allocations: 66.66 kB / 355.3 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.319e-05/0.1241, allocations: 20.75 kB / 355.3 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.1244, allocations: 228 kB / 355.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/0.1244, allocations: 24.94 kB / 355.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.1245, allocations: 32.31 kB / 355.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004753/0.1249, allocations: 270.6 kB / 355.8 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.125, allocations: 7.938 kB / 355.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.125, allocations: 8 kB / 355.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.125, allocations: 4 kB / 355.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.1254, allocations: 161.6 kB / 356 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.1267, allocations: 0.9787 MB / 357 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.127, allocations: 177.4 kB / 357.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.1271, allocations: 89.56 kB / 357.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1271, allocations: 0 / 357.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.1274, allocations: 141 kB / 357.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.1274, allocations: 0 / 357.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005044/0.1279, allocations: 225.1 kB / 357.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.442e-05/0.128, allocations: 89.11 kB / 357.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.1282, allocations: 149.6 kB / 357.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.1282, allocations: 37.7 kB / 357.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1283, allocations: 144.6 kB / 358 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.702e-05/0.1284, allocations: 63.2 kB / 358.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.445e-05/0.1285, allocations: 53.69 kB / 358.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1286, allocations: 326.8 kB / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.1287, allocations: 63.97 kB / 358.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.1289, allocations: 144.5 kB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.1292, allocations: 196.9 kB / 358.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1292, allocations: 0 / 358.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004179/0.1296, allocations: 245.2 kB / 359.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.1297, allocations: 8 kB / 359.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.1297, allocations: 4.281 kB / 359.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1297, allocations: 15.92 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.1299, allocations: 31.92 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.1299, allocations: 4 kB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.13, allocations: 19.84 kB / 359.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.729e-05/0.1301, allocations: 23.98 kB / 359.2 MB, free: 11.98 MB / 302.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.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,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.0001589/0.1302, allocations: 161.6 kB / 359.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.1303, allocations: 11.81 kB / 359.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000355/0.1306, allocations: 202.3 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1306, allocations: 0 / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1306, allocations: 0 / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.1307, allocations: 4 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007742/0.1314, allocations: 0.5908 MB / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.1314, allocations: 0 / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.276e-05/0.1315, allocations: 19.98 kB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.1316, allocations: 11.88 kB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.1316, allocations: 4 kB / 360.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1316, allocations: 4 kB / 360.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1316, allocations: 0 / 360.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003443/0.1319, allocations: 288.5 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.132, allocations: 96.83 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.132, allocations: 7.984 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.565e-05/0.1321, allocations: 8 kB / 360.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.1322, allocations: 23.97 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.1322, allocations: 4 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.17e-05/0.1323, allocations: 102.4 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1323, allocations: 0 / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000334/0.1327, allocations: 55.75 kB / 360.7 MB, free: 10.29 MB / 302.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.active,transition1.enableFire,step.localActive,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: 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.0006666/0.1333, allocations: 0.8378 MB / 361.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003367/0.1337, allocations: 183.7 kB / 361.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.1337, allocations: 0.5625 kB / 361.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.1338, allocations: 88.28 kB / 361.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.1341, allocations: 23.98 kB / 361.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.1365, allocations: 2.128 MB / 364 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.1369, allocations: 0.7365 MB / 364.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.065e-05/0.137, allocations: 25.94 kB / 364.8 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.1371, allocations: 63.41 kB / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1371, allocations: 0 / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01565/0.1527, allocations: 3.326 MB / 368.2 MB, free: 2.812 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.153, allocations: 201.6 kB / 368.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.122, allocations: 4 kB / 368.4 MB, free: 2.559 MB / 302.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