Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.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.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001109/0.001109, allocations: 100.6 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 199.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002489/0.0002488, allocations: 4 kB / 306.7 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001665/0.1175, allocations: 1.198 MB / 359.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.1192, allocations: 0.8465 MB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.882e-05/0.1193, allocations: 4 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.1194, allocations: 3.984 kB / 360.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.927e-05/0.1195, allocations: 23.91 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.1197, allocations: 35.89 kB / 360.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.1198, allocations: 67.86 kB / 360.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.932e-05/0.12, allocations: 16.22 kB / 360.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004918/0.1205, allocations: 423.2 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.1206, allocations: 71.83 kB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.1206, allocations: 7.984 kB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.729e-05/0.1207, allocations: 4 kB / 360.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-05/0.1207, allocations: 63.83 kB / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.446e-05/0.1208, allocations: 73.52 kB / 361 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.1211, allocations: 291.3 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1211, allocations: 0 / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1211, allocations: 0 / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1211, 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.0006527/0.1218, allocations: 0.6607 MB / 362 MB, free: 9.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1219, allocations: 8.031 kB / 362 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.889e-05/0.1219, allocations: 42.55 kB / 362 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.689e-05/0.122, allocations: 39.53 kB / 362 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003128/0.1223, allocations: 261.4 kB / 362.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.1223, allocations: 11.89 kB / 362.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.1224, allocations: 8 kB / 362.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.1227, allocations: 129.5 kB / 362.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1227, allocations: 0 / 362.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.1228, allocations: 8 kB / 362.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.1228, allocations: 0 / 362.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001402/0.1229, allocations: 71.89 kB / 362.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006766/0.1236, allocations: 460.5 kB / 363 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.1238, allocations: 90.55 kB / 363.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.1238, allocations: 4 kB / 363.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003182/0.1241, allocations: 206.7 kB / 363.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.1241, allocations: 8 kB / 363.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.000844/0.125, allocations: 0.6227 MB / 363.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.1251, allocations: 170.2 kB / 364.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006393/0.1258, allocations: 0.513 MB / 364.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.1258, allocations: 29.7 kB / 364.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.014e-05/0.1259, allocations: 97.05 kB / 364.7 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.1259, allocations: 31.62 kB / 364.7 MB, free: 6.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.539e-05/0.1259, allocations: 8 kB / 364.7 MB, free: 6.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1261, allocations: 330.8 kB / 365.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.1262, allocations: 59.91 kB / 365.1 MB, free: 6.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.1263, allocations: 73.69 kB / 365.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.1265, allocations: 166.8 kB / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1265, allocations: 0 / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005178/0.1271, allocations: 380.5 kB / 365.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.403e-05/0.1272, allocations: 130.7 kB / 365.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1272, allocations: 0 / 365.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.1272, allocations: 4.031 kB / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.294e-05/0.1272, allocations: 4 kB / 365.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.1272, allocations: 0 / 365.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.1274, allocations: 19.91 kB / 365.9 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.779e-05/0.1275, allocations: 59.92 kB / 365.9 MB, free: 5.562 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.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0003454/0.1279, allocations: 362.8 kB / 366.3 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.73e-05/0.1279, allocations: 35.62 kB / 366.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.128, allocations: 67.14 kB / 366.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.128, allocations: 8 kB / 366.4 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.128, allocations: 0 / 366.4 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1281, allocations: 0 / 366.4 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000927/0.129, allocations: 0.8134 MB / 367.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.129, allocations: 0 / 367.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-06/0.129, allocations: 0 / 367.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.129, allocations: 4.109 kB / 367.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.1291, allocations: 27.84 kB / 367.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.1291, allocations: 0 / 367.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1291, allocations: 4 kB / 367.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006277/0.1297, allocations: 0.5443 MB / 367.8 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.13, allocations: 244.5 kB / 368 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.603e-05/0.1301, allocations: 12.25 kB / 368 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.1302, allocations: 19.92 kB / 368.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.1304, allocations: 23.97 kB / 368.1 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-05/0.1304, allocations: 56 kB / 368.1 MB, free: 3.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004846/0.1309, allocations: 394.8 kB / 368.5 MB, free: 2.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1309, allocations: 0 / 368.5 MB, free: 2.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.1312, allocations: 47.84 kB / 368.6 MB, free: 2.75 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.0009553/0.1322, allocations: 1.081 MB / 369.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005281/0.1327, allocations: 441.5 kB / 370.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1328, allocations: 4.062 kB / 370.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.1331, allocations: 373.6 kB / 370.5 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004895/0.1335, allocations: 105.5 kB / 370.6 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1872/0.3208, allocations: 1.583 MB / 372.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.3212, allocations: 0.8086 MB / 373 MB, free: 18.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.151e-05/0.3212, allocations: 8.156 kB / 373 MB, free: 18.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.3213, allocations: 25.23 kB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3213, allocations: 0.5312 kB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.3408, allocations: 5.294 MB / 378.3 MB, free: 18.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/0.341, allocations: 174.9 kB / 378.4 MB, free: 17.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.123, allocations: 0 / 378.4 MB, free: 17.79 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat