Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001331/0.001331, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.3 MB, free: 9.066 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 58.62 kB / 306.3 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1246, allocations: 50.53 MB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003415/0.128, allocations: 1.772 MB / 358.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008568/0.1289, allocations: 303.1 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.1291, allocations: 4 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.1293, allocations: 15.8 kB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.381e-05/0.1294, allocations: 19.92 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004555/0.1299, allocations: 99.84 kB / 359.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003597/0.1303, allocations: 251.5 kB / 359.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003697/0.1306, allocations: 187.1 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.1308, allocations: 79.7 kB / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.131, allocations: 99.53 kB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.131, allocations: 16 kB / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.584e-05/0.1311, allocations: 20 kB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.735e-05/0.1312, allocations: 47.83 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.1313, allocations: 103.5 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.1316, allocations: 227.5 kB / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1316, allocations: 0 / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1316, allocations: 0 / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.1316, allocations: 3.938 kB / 360.1 MB, free: 10.99 MB / 302.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.0008368/0.1325, allocations: 488.9 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.1325, allocations: 12.02 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.491e-05/0.1326, allocations: 58.73 kB / 360.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000281/0.1329, allocations: 32.64 kB / 360.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.1332, allocations: 232 kB / 360.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.1332, allocations: 20.94 kB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.998e-05/0.1333, allocations: 28.38 kB / 360.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004487/0.1337, allocations: 270.5 kB / 361.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1338, allocations: 3.938 kB / 361.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.1338, allocations: 12 kB / 361.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1338, allocations: 8 kB / 361.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.1341, allocations: 165.6 kB / 361.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.1353, allocations: 0.9672 MB / 362.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.1356, allocations: 185.3 kB / 362.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.1357, allocations: 85.56 kB / 362.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1358, allocations: 4 kB / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.136, allocations: 133.1 kB / 362.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.597e-06/0.136, allocations: 4 kB / 362.8 MB, free: 8.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004632/0.1365, allocations: 220.2 kB / 363 MB, free: 7.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.1366, allocations: 85.11 kB / 363.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.1367, allocations: 157.5 kB / 363.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.1368, allocations: 37.7 kB / 363.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.1369, allocations: 136.6 kB / 363.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.137, allocations: 63.2 kB / 363.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.1371, allocations: 73.59 kB / 363.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1372, allocations: 338.9 kB / 363.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.1374, allocations: 67.75 kB / 363.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.1375, allocations: 136.5 kB / 364 MB, free: 6.707 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.1378, allocations: 193 kB / 364.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1378, allocations: 0 / 364.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00039/0.1382, allocations: 253.2 kB / 364.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1383, allocations: 8 kB / 364.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1383, allocations: 0 / 364.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.1383, allocations: 4 kB / 364.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.1384, allocations: 40.14 kB / 364.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.1385, allocations: 8 kB / 364.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.1386, allocations: 27.77 kB / 364.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.1386, allocations: 12 kB / 364.6 MB, free: 6.137 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.0001455/0.1387, allocations: 162.7 kB / 364.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.1388, allocations: 19.8 kB / 364.8 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.714e-05/0.1388, allocations: 16.84 kB / 364.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.1388, allocations: 4 kB / 364.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1389, allocations: 0 / 364.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.1389, allocations: 4 kB / 364.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006855/0.1396, allocations: 0.579 MB / 365.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.1396, allocations: 0 / 365.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.947e-05/0.1396, allocations: 19.88 kB / 365.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.483e-06/0.1397, allocations: 7.938 kB / 365.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1397, allocations: 4 kB / 365.4 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.1397, allocations: 3.984 kB / 365.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1397, allocations: 8 kB / 365.4 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.14, allocations: 272 kB / 365.7 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.877e-05/0.1401, allocations: 88.95 kB / 365.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.1401, allocations: 19.86 kB / 365.8 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.441e-05/0.1402, allocations: 0 / 365.8 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.401e-05/0.1403, allocations: 23.97 kB / 365.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.1403, allocations: 12 kB / 365.8 MB, free: 4.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.284e-05/0.1404, allocations: 101.5 kB / 365.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1404, allocations: 0 / 365.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003023/0.1407, allocations: 51.84 kB / 366 MB, free: 4.648 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: 18 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$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 (24): * Single equations (assignments): 19 * 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.0005879/0.1413, allocations: 0.8155 MB / 366.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003225/0.1416, allocations: 179.7 kB / 367 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1416, allocations: 0 / 367 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.1418, allocations: 79.84 kB / 367 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.1421, allocations: 23.98 kB / 367.1 MB, free: 3.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.1443, allocations: 2.123 MB / 369.2 MB, free: 1.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1446, allocations: 0.729 MB / 369.9 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.29e-05/0.1447, allocations: 25.94 kB / 369.9 MB, free: 496 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.1448, allocations: 59.42 kB / 370 MB, free: 436 kB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1448, allocations: 0 / 370 MB, free: 436 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2176/0.3624, allocations: 3.227 MB / 373.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.3626, allocations: 208.1 kB / 373.4 MB, free: 19.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.146, allocations: 0.6562 kB / 373.4 MB, free: 19.24 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches