Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",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.00166/0.00167, allocations: 99.98 kB / 16.5 MB, free: 6.641 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.00184/0.00184, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.657/1.657, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001166, allocations: 49.45 kB / 300 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1263, allocations: 49.45 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003684/0.13, allocations: 1.567 MB / 351.1 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009731/0.1311, allocations: 303.1 kB / 351.4 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.1313, allocations: 4 kB / 351.4 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.1315, allocations: 11.88 kB / 351.4 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.827e-05/0.1317, allocations: 19.84 kB / 351.4 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006179/0.1323, allocations: 91.91 kB / 351.5 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004196/0.1327, allocations: 247.5 kB / 351.7 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004026/0.1332, allocations: 146.5 kB / 351.9 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.1333, allocations: 75.77 kB / 351.9 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.1335, allocations: 91.53 kB / 352 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.376e-05/0.1336, allocations: 16 kB / 352 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.1337, allocations: 24 kB / 352.1 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.767e-05/0.1338, allocations: 43.89 kB / 352.1 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.134, allocations: 95.45 kB / 352.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004163/0.1345, allocations: 203.3 kB / 352.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.928e-06/0.1345, allocations: 3.984 kB / 352.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.1345, allocations: 4 kB / 352.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1345, allocations: 0 / 352.4 MB, free: 1.824 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001206/0.1357, allocations: 482.8 kB / 352.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.73e-05/0.1358, allocations: 8.031 kB / 352.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.773e-05/0.1359, allocations: 58.73 kB / 352.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.344e-05/0.136, allocations: 20.75 kB / 353 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003971/0.1364, allocations: 239.9 kB / 353.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.1365, allocations: 20.94 kB / 353.2 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.159e-05/0.1366, allocations: 28.38 kB / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006432/0.1372, allocations: 244 kB / 353.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.1373, allocations: 3.938 kB / 353.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.1373, allocations: 11.98 kB / 353.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1373, allocations: 4 kB / 353.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003725/0.1377, allocations: 161.7 kB / 353.7 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.139, allocations: 0.6973 MB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.1394, allocations: 170.8 kB / 354.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.1396, allocations: 80.83 kB / 354.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.1396, allocations: 7.922 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.1399, allocations: 123.3 kB / 354.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.214e-06/0.1399, allocations: 0 / 354.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004922/0.1404, allocations: 224.8 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.1405, allocations: 63.27 kB / 355 MB, free: 15.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.1407, allocations: 144.5 kB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.1407, allocations: 41.69 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1409, allocations: 124.6 kB / 355.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.793e-05/0.1409, allocations: 59.2 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.1411, allocations: 78 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1412, allocations: 330.8 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1414, allocations: 64.56 kB / 355.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.1415, allocations: 128.1 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.1418, allocations: 179.2 kB / 356.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1418, allocations: 3.938 kB / 356.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003929/0.1422, allocations: 245.3 kB / 356.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1423, allocations: 4 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.1423, allocations: 4 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.1423, allocations: 4 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.1425, allocations: 35.84 kB / 356.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.1425, allocations: 4 kB / 356.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.1426, allocations: 27.69 kB / 356.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.1427, allocations: 12 kB / 356.5 MB, free: 13.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002542/0.1429, allocations: 161.8 kB / 356.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.1429, allocations: 7.906 kB / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/0.1433, allocations: 194.4 kB / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1433, allocations: 4 kB / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.1433, allocations: 0 / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1434, allocations: 0 / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008481/0.1442, allocations: 0.5683 MB / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.1442, allocations: 7.938 kB / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.464e-05/0.1443, allocations: 23.92 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1443, allocations: 0 / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1444, allocations: 0 / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.1444, allocations: 4 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1444, allocations: 3.938 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003621/0.1447, allocations: 283.6 kB / 357.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.23e-05/0.1448, allocations: 88.95 kB / 357.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/0.1449, allocations: 12 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.635e-05/0.145, allocations: 15.97 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-05/0.1451, allocations: 19.91 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.1451, allocations: 12 kB / 357.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.072e-05/0.1452, allocations: 91.27 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1452, allocations: 0 / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.1456, allocations: 55.84 kB / 358 MB, free: 11.82 MB / 302.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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0008101/0.1464, allocations: 0.8176 MB / 358.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004321/0.1468, allocations: 183.7 kB / 359 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1468, allocations: 0 / 359 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.147, allocations: 84.34 kB / 359.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.1474, allocations: 28.25 kB / 359.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.1502, allocations: 2.062 MB / 361.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.1506, allocations: 0.7365 MB / 361.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.403e-05/0.1507, allocations: 17.95 kB / 361.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.1509, allocations: 59.41 kB / 362 MB, free: 7.668 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1509, allocations: 0 / 362 MB, free: 7.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01607/0.1669, allocations: 3.36 MB / 365.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/0.1672, allocations: 187.7 kB / 365.5 MB, free: 4.129 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.174, allocations: 0 / 365.5 MB, free: 4.129 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches