Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",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.0009961/0.0009965, allocations: 90.7 kB / 16.31 MB, free: 5.672 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.001044/0.001044, allocations: 183 kB / 17.2 MB, free: 5.602 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.511/1.511, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003003, allocations: 6.438 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1371, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001817/0.1389, allocations: 1.183 MB / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1408, allocations: 0.8162 MB / 353.2 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.667e-05/0.1408, allocations: 0 / 353.2 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.006e-05/0.1409, allocations: 7.922 kB / 353.2 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.465e-05/0.141, allocations: 23.95 kB / 353.3 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.1413, allocations: 31.91 kB / 353.3 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.1414, allocations: 67.92 kB / 353.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.586e-05/0.1415, allocations: 12.5 kB / 353.4 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004989/0.142, allocations: 427.2 kB / 353.8 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.1421, allocations: 71.83 kB / 353.9 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.1422, allocations: 7.938 kB / 353.9 MB, free: 8.984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.743e-05/0.1422, allocations: 4 kB / 353.9 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.08e-05/0.1423, allocations: 63.77 kB / 353.9 MB, free: 8.918 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.019e-05/0.1424, allocations: 73.52 kB / 354 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.1427, allocations: 307.2 kB / 354.3 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1427, allocations: 4 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1427, allocations: 0 / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1427, allocations: 0 / 354.3 MB, free: 8.535 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006951/0.1434, allocations: 0.6527 MB / 355 MB, free: 7.809 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1434, allocations: 8.031 kB / 355 MB, free: 7.801 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.613e-05/0.1435, allocations: 42.56 kB / 355 MB, free: 7.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.159e-05/0.1436, allocations: 31.62 kB / 355 MB, free: 7.719 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.1439, allocations: 261.4 kB / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.144, allocations: 8 kB / 355.3 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.144, allocations: 8 kB / 355.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003157/0.1443, allocations: 129.6 kB / 355.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1443, allocations: 0 / 355.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.1444, allocations: 7.953 kB / 355.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1444, allocations: 0 / 355.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.1445, allocations: 59.97 kB / 355.5 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007127/0.1452, allocations: 476.4 kB / 356 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.1454, allocations: 94.5 kB / 356.1 MB, free: 6.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.1455, allocations: 4 kB / 356.1 MB, free: 6.586 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004152/0.1459, allocations: 206.7 kB / 356.3 MB, free: 6.359 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.683e-06/0.1459, allocations: 4 kB / 356.3 MB, free: 6.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001142/0.147, allocations: 0.6218 MB / 356.9 MB, free: 5.668 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.1472, allocations: 170.2 kB / 357.1 MB, free: 5.465 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009013/0.1481, allocations: 0.509 MB / 357.6 MB, free: 4.949 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.1483, allocations: 33.81 kB / 357.6 MB, free: 4.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.648e-05/0.1484, allocations: 105 kB / 357.7 MB, free: 4.805 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.1485, allocations: 27.66 kB / 357.7 MB, free: 4.777 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.746e-05/0.1485, allocations: 0 / 357.7 MB, free: 4.777 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002885/0.1488, allocations: 322.8 kB / 358 MB, free: 4.453 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.149, allocations: 63.97 kB / 358.1 MB, free: 4.391 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.1492, allocations: 73.67 kB / 358.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/0.1495, allocations: 162.8 kB / 358.3 MB, free: 4.129 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1495, allocations: 0 / 358.3 MB, free: 4.129 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007337/0.1502, allocations: 392.3 kB / 358.7 MB, free: 3.715 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/0.1504, allocations: 126.8 kB / 358.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1504, allocations: 0 / 358.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1504, allocations: 4.031 kB / 358.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.893e-05/0.1504, allocations: 8.125 kB / 358.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1504, allocations: 3.938 kB / 358.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/0.1507, allocations: 15.98 kB / 358.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.781e-05/0.1508, allocations: 55.94 kB / 358.9 MB, free: 3.48 MB / 286.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.0004626/0.1513, allocations: 366.7 kB / 359.3 MB, free: 3.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.171e-05/0.1513, allocations: 43.48 kB / 359.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.1515, allocations: 63.16 kB / 359.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1515, allocations: 11.94 kB / 359.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1515, allocations: 0 / 359.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.1515, allocations: 3.984 kB / 359.4 MB, free: 2.961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.153, allocations: 0.8057 MB / 360.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.153, allocations: 3.984 kB / 360.2 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-06/0.153, allocations: 0 / 360.2 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.153, allocations: 4 kB / 360.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.416e-05/0.153, allocations: 8 kB / 360.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.1531, allocations: 0 / 360.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1531, allocations: 4 kB / 360.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1541, allocations: 0.5431 MB / 360.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000461/0.1546, allocations: 248.4 kB / 361 MB, free: 1.211 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.698e-05/0.1546, allocations: 12 kB / 361 MB, free: 1.199 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.1549, allocations: 11.98 kB / 361 MB, free: 1.188 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.155, allocations: 27.97 kB / 361.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.114e-05/0.1551, allocations: 55.98 kB / 361.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0007025/0.1558, allocations: 390.9 kB / 361.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1558, allocations: 3.938 kB / 361.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.1563, allocations: 44 kB / 361.6 MB, free: 0.6758 MB / 286.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.001316/0.1576, allocations: 1.105 MB / 362.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006941/0.1584, allocations: 437.5 kB / 363.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1584, allocations: 4.062 kB / 363.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004674/0.1589, allocations: 377.5 kB / 363.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006729/0.1595, allocations: 101.9 kB / 363.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.1629, allocations: 1.591 MB / 365.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000591/0.1635, allocations: 0.8142 MB / 366 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.203e-05/0.1636, allocations: 12.64 kB / 366 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.719e-05/0.1637, allocations: 23.44 kB / 366 MB, free: 12 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1637, allocations: 0 / 366 MB, free: 12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.1865, allocations: 5.285 MB / 371.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004022/0.187, allocations: 170.1 kB / 371.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/2.121, allocations: 0 / 371.5 MB, free: 6.531 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat