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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001219/0.001219, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008865/0.0008862, allocations: 96.09 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002575, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2831, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3849, allocations: 81.36 MB / 457.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.3852, allocations: 75.95 kB / 457.3 MB, free: 15.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03194/0.4172, allocations: 16.42 MB / 473.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4172, allocations: 0 / 473.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.4172, allocations: 4 kB / 473.8 MB, free: 14.82 MB / 362.7 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.0009118/0.4182, allocations: 0.676 MB / 474.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.4182, allocations: 12.03 kB / 474.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.369e-05/0.4183, allocations: 38.55 kB / 474.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.653e-05/0.4184, allocations: 31.62 kB / 474.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.4188, allocations: 261.3 kB / 474.8 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.4188, allocations: 16 kB / 474.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.4189, allocations: 8 kB / 474.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.4192, allocations: 129.5 kB / 474.9 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4192, allocations: 0 / 474.9 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.4193, allocations: 4 kB / 474.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.4193, allocations: 4 kB / 474.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001534/0.4194, allocations: 55.97 kB / 475 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009439/0.4204, allocations: 476.4 kB / 475.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.4206, allocations: 94.55 kB / 475.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.4206, allocations: 0 / 475.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.421, allocations: 205.2 kB / 475.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.956e-06/0.421, allocations: 0 / 475.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009643/0.422, allocations: 0.6193 MB / 476.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.4222, allocations: 166.2 kB / 476.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006902/0.4229, allocations: 472.4 kB / 477 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.4229, allocations: 29.7 kB / 477 MB, free: 11.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.546e-05/0.423, allocations: 97.14 kB / 477.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.587e-05/0.423, allocations: 31.61 kB / 477.1 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.459e-05/0.4231, allocations: 0 / 477.1 MB, free: 11.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.4232, allocations: 326.8 kB / 477.5 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.4233, allocations: 63.95 kB / 477.5 MB, free: 10.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.4235, allocations: 73.69 kB / 477.6 MB, free: 10.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.4236, allocations: 166.8 kB / 477.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4236, allocations: 0 / 477.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005096/0.4242, allocations: 372.1 kB / 478.1 MB, free: 10.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.026e-05/0.4243, allocations: 122.8 kB / 478.2 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4243, allocations: 4 kB / 478.2 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.4243, allocations: 0 / 478.2 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.153e-05/0.4243, allocations: 4.031 kB / 478.2 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.4243, allocations: 4 kB / 478.3 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.4245, allocations: 20.03 kB / 478.3 MB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.997e-05/0.4246, allocations: 59.89 kB / 478.3 MB, free: 9.816 MB / 362.7 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.0004191/0.425, allocations: 362.9 kB / 478.7 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.4251, allocations: 39.53 kB / 478.7 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.4252, allocations: 67.14 kB / 478.8 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.4252, allocations: 0 / 478.8 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4252, allocations: 4 kB / 478.8 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4252, allocations: 7.969 kB / 478.8 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.4263, allocations: 0.8017 MB / 479.6 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4263, allocations: 0 / 479.6 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.782e-06/0.4263, allocations: 0 / 479.6 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.4263, allocations: 0 / 479.6 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.4263, allocations: 15.98 kB / 479.6 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4263, allocations: 0 / 479.6 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.4263, allocations: 0 / 479.6 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006025/0.4269, allocations: 0.5255 MB / 480.1 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000333/0.4273, allocations: 248.4 kB / 480.4 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.684e-05/0.4274, allocations: 8 kB / 480.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.4275, allocations: 15.98 kB / 480.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.4276, allocations: 23.95 kB / 480.4 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-05/0.4277, allocations: 67.92 kB / 480.5 MB, free: 7.477 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004647/0.4282, allocations: 386.9 kB / 480.9 MB, free: 7.105 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4282, allocations: 4 kB / 480.9 MB, free: 7.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002875/0.4285, allocations: 43.95 kB / 480.9 MB, free: 7.059 MB / 362.7 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.0009459/0.4294, allocations: 1.064 MB / 482 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004993/0.4299, allocations: 449.5 kB / 482.4 MB, free: 5.457 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.43, allocations: 0 / 482.4 MB, free: 5.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003032/0.4303, allocations: 381.6 kB / 482.8 MB, free: 5.035 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.4308, allocations: 101.5 kB / 482.9 MB, free: 4.938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.4331, allocations: 1.587 MB / 484.5 MB, free: 3.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.4336, allocations: 0.8219 MB / 485.3 MB, free: 2.445 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.137e-05/0.4337, allocations: 4.672 kB / 485.3 MB, free: 2.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.805e-05/0.4337, allocations: 27.42 kB / 485.3 MB, free: 2.41 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.4337, allocations: 0 / 485.3 MB, free: 2.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.4515, allocations: 5.315 MB / 490.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/0.4519, allocations: 167.3 kB / 490.8 MB, free: 12.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/2.05, allocations: 0 / 490.8 MB, free: 12.78 MB / 378.7 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) 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