Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.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.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008176/0.0008213, allocations: 95.73 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000892/0.000892, allocations: 196.6 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002544, allocations: 8 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1165, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001565/0.1181, allocations: 1.202 MB / 359.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1198, allocations: 0.8542 MB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.329e-05/0.1198, allocations: 0 / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.589e-05/0.1199, allocations: 4 kB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.169e-05/0.12, allocations: 19.84 kB / 360.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.1203, allocations: 31.97 kB / 360.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.1205, allocations: 107.7 kB / 360.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.1206, allocations: 20.22 kB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006873/0.1213, allocations: 491.1 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.1215, allocations: 75.81 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.911e-05/0.1215, allocations: 4 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.607e-05/0.1216, allocations: 4 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.914e-05/0.1217, allocations: 59.77 kB / 361.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.734e-05/0.1218, allocations: 73.52 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002932/0.1221, allocations: 303.2 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1221, allocations: 0 / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1221, allocations: 0 / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1221, allocations: 0 / 361.5 MB, free: 10.75 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006435/0.1227, allocations: 0.6608 MB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1228, allocations: 8.031 kB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.26e-05/0.1228, allocations: 42.56 kB / 362.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.327e-05/0.1229, allocations: 35.53 kB / 362.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.1232, allocations: 269.2 kB / 362.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.1232, allocations: 4 kB / 362.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.634e-05/0.1233, allocations: 8 kB / 362.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.1236, allocations: 125.6 kB / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.1236, allocations: 0 / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.1236, allocations: 12 kB / 362.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1236, allocations: 0 / 362.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.1238, allocations: 63.91 kB / 362.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006103/0.1244, allocations: 456.6 kB / 363.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.1246, allocations: 94.55 kB / 363.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.1248, allocations: 88.89 kB / 363.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.1248, allocations: 0 / 363.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.1251, allocations: 214.5 kB / 363.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.352e-06/0.1251, allocations: 0 / 363.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007982/0.1259, allocations: 468 kB / 364 MB, free: 7.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1261, allocations: 170.2 kB / 364.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006342/0.1267, allocations: 0.5129 MB / 364.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.1267, allocations: 33.7 kB / 364.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.1268, allocations: 101 kB / 364.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.1269, allocations: 31.64 kB / 364.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.677e-05/0.1269, allocations: 4 kB / 364.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.127, allocations: 330.8 kB / 365.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.1271, allocations: 55.97 kB / 365.3 MB, free: 6.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.1273, allocations: 69.69 kB / 365.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.1275, allocations: 178 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1275, allocations: 0 / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005181/0.128, allocations: 384.3 kB / 365.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.44e-05/0.1281, allocations: 125.9 kB / 366 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1281, allocations: 0 / 366 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1282, allocations: 0 / 366 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.593e-05/0.1282, allocations: 12.11 kB / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1282, allocations: 0 / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.1284, allocations: 15.91 kB / 366 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.498e-05/0.1284, allocations: 59.97 kB / 366.1 MB, free: 5.805 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003482/0.1288, allocations: 378.7 kB / 366.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.616e-05/0.1288, allocations: 43.55 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.129, allocations: 59.16 kB / 366.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.129, allocations: 0 / 366.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.129, allocations: 0 / 366.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.129, allocations: 4 kB / 366.6 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009356/0.1299, allocations: 0.8174 MB / 367.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1299, allocations: 0 / 367.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-06/0.13, allocations: 0 / 367.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.13, allocations: 0 / 367.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.357e-05/0.13, allocations: 15.98 kB / 367.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.13, allocations: 3.938 kB / 367.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.13, allocations: 0 / 367.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006377/0.1307, allocations: 0.5445 MB / 367.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003027/0.131, allocations: 244.5 kB / 368.2 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.132e-05/0.131, allocations: 8 kB / 368.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.1312, allocations: 19.98 kB / 368.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.1313, allocations: 23.97 kB / 368.2 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.589e-05/0.1314, allocations: 56 kB / 368.3 MB, free: 3.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004556/0.1318, allocations: 390.9 kB / 368.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1318, allocations: 0 / 368.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.1321, allocations: 47.84 kB / 368.7 MB, free: 2.996 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009741/0.1331, allocations: 1.101 MB / 369.8 MB, free: 1.844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005045/0.1336, allocations: 437.5 kB / 370.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1336, allocations: 0 / 370.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003358/0.134, allocations: 381.5 kB / 370.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005578/0.1345, allocations: 108.3 kB / 370.7 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2035/0.3381, allocations: 1.554 MB / 372.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.3385, allocations: 0.7968 MB / 373.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.308e-05/0.3386, allocations: 10.64 kB / 373.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.858e-05/0.3386, allocations: 26.92 kB / 373.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of SimCode: time 1.503e-06/0.3386, allocations: 0 / 373.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/0.3581, allocations: 5.298 MB / 378.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.3583, allocations: 183.5 kB / 378.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.284, allocations: 0 / 378.6 MB, free: 18.18 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat