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.001096/0.001096, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001287, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002126/0.0002126, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1151, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001537/0.1167, allocations: 1.198 MB / 359.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.1182, allocations: 0.8504 MB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.021e-05/0.1183, allocations: 4 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.907e-05/0.1184, allocations: 3.984 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.668e-05/0.1185, allocations: 23.89 kB / 360.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.1187, allocations: 31.91 kB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.1188, allocations: 63.86 kB / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.559e-05/0.1189, allocations: 24.22 kB / 360.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004491/0.1194, allocations: 423.2 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.1195, allocations: 71.83 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.1195, allocations: 4 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.414e-05/0.1196, allocations: 4 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.597e-05/0.1197, allocations: 63.81 kB / 360.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.094e-05/0.1197, allocations: 77.45 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002627/0.12, allocations: 295.3 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.12, allocations: 0 / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.12, allocations: 0 / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.12, allocations: 0 / 361.3 MB, free: 10.64 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.0006407/0.1207, allocations: 0.6607 MB / 362 MB, free: 9.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.1207, allocations: 8.031 kB / 362 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.983e-05/0.1208, allocations: 38.56 kB / 362 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.042e-05/0.1209, allocations: 39.53 kB / 362.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.1212, allocations: 257.4 kB / 362.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.1212, allocations: 7.953 kB / 362.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.1212, allocations: 12 kB / 362.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.1215, allocations: 129.5 kB / 362.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.1215, allocations: 0 / 362.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.1216, allocations: 15.92 kB / 362.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1216, allocations: 0 / 362.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.1217, allocations: 63.97 kB / 362.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.1224, allocations: 460.5 kB / 363 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.1226, allocations: 94.55 kB / 363.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.1226, allocations: 8 kB / 363.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.1229, allocations: 202.7 kB / 363.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.1229, allocations: 0 / 363.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008326/0.1238, allocations: 0.6229 MB / 363.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.636e-05/0.1239, allocations: 170.2 kB / 364.1 MB, free: 7.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.1245, allocations: 0.513 MB / 364.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.1246, allocations: 29.7 kB / 364.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.1246, allocations: 105 kB / 364.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.1247, allocations: 27.64 kB / 364.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.695e-05/0.1247, allocations: 8 kB / 364.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1248, allocations: 326.8 kB / 365.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.125, allocations: 59.91 kB / 365.1 MB, free: 6.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.1251, allocations: 73.67 kB / 365.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.1253, allocations: 166.8 kB / 365.4 MB, free: 6.223 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1253, allocations: 4 kB / 365.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005239/0.1258, allocations: 380.5 kB / 365.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-05/0.1259, allocations: 130.7 kB / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1259, allocations: 0 / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1259, allocations: 0 / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.348e-05/0.126, allocations: 4 kB / 365.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.126, allocations: 0 / 365.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.1261, allocations: 20.02 kB / 365.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.361e-05/0.1262, allocations: 64.02 kB / 365.9 MB, free: 5.578 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.0003471/0.1266, allocations: 370.6 kB / 366.3 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/0.1266, allocations: 35.62 kB / 366.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.1268, allocations: 63.16 kB / 366.4 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1268, allocations: 4 kB / 366.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1268, allocations: 0 / 366.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1268, allocations: 3.984 kB / 366.4 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009849/0.1278, allocations: 0.8095 MB / 367.2 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.1278, allocations: 4.094 kB / 367.2 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.688e-06/0.1278, allocations: 7.938 kB / 367.2 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1278, allocations: 4 kB / 367.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.1278, allocations: 12 kB / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1279, allocations: 0 / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1279, allocations: 0 / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006273/0.1285, allocations: 0.5483 MB / 367.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003304/0.1288, allocations: 244.5 kB / 368 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.517e-05/0.1289, allocations: 12 kB / 368 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.129, allocations: 19.92 kB / 368.1 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.1292, allocations: 27.97 kB / 368.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/0.1292, allocations: 55.98 kB / 368.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004738/0.1297, allocations: 386.9 kB / 368.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1297, allocations: 0 / 368.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.13, allocations: 47.84 kB / 368.6 MB, free: 2.773 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.001004/0.131, allocations: 1.09 MB / 369.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000507/0.1316, allocations: 437.5 kB / 370.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1316, allocations: 4 kB / 370.1 MB, free: 1.148 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.1319, allocations: 377.6 kB / 370.5 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.1324, allocations: 101 kB / 370.6 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1958/0.3282, allocations: 1.59 MB / 372.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.3286, allocations: 0.8085 MB / 373 MB, free: 18.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.137e-05/0.3287, allocations: 8.031 kB / 373 MB, free: 18.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.3288, allocations: 28.47 kB / 373 MB, free: 18.63 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3288, allocations: 6.047 kB / 373 MB, free: 18.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.3472, allocations: 5.278 MB / 378.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.3474, allocations: 181.9 kB / 378.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.163, allocations: 0 / 378.5 MB, free: 17.8 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