Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_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.0008917/0.0008917, allocations: 94.92 kB / 16.95 MB, free: 6.469 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.0009061/0.0009061, allocations: 183.1 kB / 17.84 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007649/0.0007654, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1513, allocations: 47.57 MB / 328.4 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002198/0.1536, allocations: 1.188 MB / 329.6 MB, free: 2.777 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.1563, allocations: 0.8599 MB / 330.5 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.783e-05/0.1564, allocations: 7.938 kB / 330.5 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.1565, allocations: 7.922 kB / 330.5 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.864e-05/0.1566, allocations: 7.938 kB / 330.5 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003938/0.157, allocations: 39.89 kB / 330.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.1572, allocations: 99.75 kB / 330.6 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.1574, allocations: 16.22 kB / 330.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007885/0.1582, allocations: 499.1 kB / 331.2 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.1584, allocations: 79.81 kB / 331.2 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.1585, allocations: 4 kB / 331.2 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.795e-05/0.1585, allocations: 4 kB / 331.2 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.1586, allocations: 63.77 kB / 331.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.1587, allocations: 73.52 kB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000506/0.1593, allocations: 287.3 kB / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.162e-05/0.1593, allocations: 0 / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.858e-06/0.1593, allocations: 0 / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.1593, allocations: 3.938 kB / 331.7 MB, free: 0.7305 MB / 270.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.001172/0.1605, allocations: 0.6609 MB / 332.3 MB, free: 15.99 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.85e-05/0.1606, allocations: 12.03 kB / 332.3 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.244e-05/0.1607, allocations: 42.56 kB / 332.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.454e-05/0.1607, allocations: 31.62 kB / 332.4 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.1612, allocations: 261.2 kB / 332.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.1612, allocations: 4 kB / 332.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/0.1612, allocations: 12 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.1616, allocations: 129.5 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1617, allocations: 0 / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.1617, allocations: 4 kB / 332.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.1617, allocations: 0 / 332.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.1619, allocations: 67.95 kB / 332.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007925/0.1627, allocations: 460.5 kB / 333.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.1629, allocations: 102.5 kB / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.1631, allocations: 80.89 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.1631, allocations: 7.984 kB / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004205/0.1635, allocations: 206.7 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.943e-06/0.1635, allocations: 0 / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009443/0.1645, allocations: 480 kB / 334.2 MB, free: 13.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.1646, allocations: 174.2 kB / 334.3 MB, free: 13.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006885/0.1653, allocations: 0.509 MB / 334.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.1654, allocations: 29.7 kB / 334.9 MB, free: 13.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.138e-05/0.1655, allocations: 105 kB / 335 MB, free: 13.1 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.667e-05/0.1655, allocations: 35.62 kB / 335 MB, free: 13.06 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.668e-05/0.1655, allocations: 4 kB / 335 MB, free: 13.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.1657, allocations: 322.9 kB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1659, allocations: 63.84 kB / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.166, allocations: 73.62 kB / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.1662, allocations: 170.8 kB / 335.6 MB, free: 12.4 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1662, allocations: 4 kB / 335.6 MB, free: 12.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005781/0.1668, allocations: 376.3 kB / 336 MB, free: 12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.167, allocations: 125.5 kB / 336.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.167, allocations: 0 / 336.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.167, allocations: 3.938 kB / 336.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.437e-05/0.167, allocations: 11.98 kB / 336.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.167, allocations: 0 / 336.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.1672, allocations: 11.95 kB / 336.2 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.322e-05/0.1673, allocations: 59.92 kB / 336.2 MB, free: 11.77 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.0003937/0.1677, allocations: 362.8 kB / 336.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.716e-05/0.1678, allocations: 39.53 kB / 336.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.1679, allocations: 67.14 kB / 336.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1679, allocations: 0 / 336.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.1679, allocations: 4 kB / 336.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1679, allocations: 3.984 kB / 336.7 MB, free: 11.26 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.1691, allocations: 0.8134 MB / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.1691, allocations: 0 / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.908e-06/0.1692, allocations: 4 kB / 337.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1692, allocations: 0 / 337.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.1692, allocations: 23.97 kB / 337.5 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1692, allocations: 0 / 337.5 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1692, allocations: 3.953 kB / 337.5 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000746/0.17, allocations: 0.5334 MB / 338.1 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/0.1703, allocations: 248.5 kB / 338.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.333e-05/0.1704, allocations: 8.25 kB / 338.3 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.1705, allocations: 27.92 kB / 338.3 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.1707, allocations: 31.91 kB / 338.4 MB, free: 9.434 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-05/0.1707, allocations: 59.89 kB / 338.4 MB, free: 9.375 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005045/0.1712, allocations: 386.9 kB / 338.8 MB, free: 9 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1713, allocations: 0 / 338.8 MB, free: 9 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.1715, allocations: 40 kB / 338.9 MB, free: 8.961 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.001248/0.1728, allocations: 1.09 MB / 339.9 MB, free: 7.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006051/0.1734, allocations: 441.5 kB / 340.4 MB, free: 7.34 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1734, allocations: 3.938 kB / 340.4 MB, free: 7.336 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003762/0.1738, allocations: 373.6 kB / 340.7 MB, free: 6.922 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/0.1745, allocations: 97.45 kB / 340.8 MB, free: 6.824 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.1774, allocations: 1.564 MB / 342.4 MB, free: 5.211 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005393/0.1779, allocations: 0.8061 MB / 343.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.234e-05/0.178, allocations: 4.672 kB / 343.2 MB, free: 4.375 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.994e-05/0.178, allocations: 27.42 kB / 343.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of SimCode: time 7.02e-07/0.178, allocations: 0 / 343.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.2004, allocations: 5.302 MB / 348.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003664/0.2008, allocations: 171 kB / 348.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.143/2.344, allocations: 3.938 kB / 348.7 MB, free: 14.72 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat