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.0009639/0.0009638, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000849/0.0008491, allocations: 82.22 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.034e-05/2.035e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3817/0.4888, allocations: 80.87 MB / 444 MB, free: 14.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.4891, allocations: 67.03 kB / 444.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03221/0.5213, allocations: 16.41 MB / 460.5 MB, free: 1.199 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5214, allocations: 4 kB / 460.5 MB, free: 1.195 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.5214, allocations: 4 kB / 460.5 MB, free: 1.191 MB / 330.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.0006469/0.5221, allocations: 0.6142 MB / 461.1 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.5221, allocations: 12.03 kB / 461.1 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.981e-05/0.5222, allocations: 31.62 kB / 461.2 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.5225, allocations: 258.6 kB / 461.4 MB, free: 200 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.5226, allocations: 11.44 kB / 461.4 MB, free: 192 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.5226, allocations: 8 kB / 461.4 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001253/0.5227, allocations: 49.61 kB / 461.5 MB, free: 148 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.5229, allocations: 125.1 kB / 461.6 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.523, allocations: 0 / 461.6 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.523, allocations: 4 kB / 461.6 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.523, allocations: 0 / 461.6 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006234/0.5236, allocations: 438.8 kB / 462 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/0.5238, allocations: 97.17 kB / 462.1 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.5239, allocations: 73.41 kB / 462.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.5239, allocations: 112 / 462.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002636/0.5242, allocations: 205.8 kB / 462.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.283e-06/0.5242, allocations: 0 / 462.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005599/0.5248, allocations: 268.4 kB / 462.7 MB, free: 15.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5249, allocations: 170 kB / 462.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005282/0.5254, allocations: 450.7 kB / 463.3 MB, free: 14.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.5255, allocations: 29.7 kB / 463.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.753e-05/0.5255, allocations: 95.39 kB / 463.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.52e-05/0.5256, allocations: 38.97 kB / 463.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.5256, allocations: 7.188 kB / 463.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.5257, allocations: 322.3 kB / 463.8 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.441e-05/0.5258, allocations: 54.42 kB / 463.8 MB, free: 13.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-05/0.5259, allocations: 55.98 kB / 463.9 MB, free: 13.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.126e-05/0.526, allocations: 45.59 kB / 463.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.526, allocations: 3.938 kB / 463.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003614/0.5264, allocations: 239.7 kB / 464.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.211e-05/0.5265, allocations: 122.3 kB / 464.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.5265, allocations: 0 / 464.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.5265, allocations: 0 / 464.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.18e-05/0.5266, allocations: 7.922 kB / 464.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.5266, allocations: 0 / 464.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.5267, allocations: 15.81 kB / 464.3 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.425e-05/0.5268, allocations: 59.94 kB / 464.4 MB, free: 13.5 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,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 () * 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.0001793/0.527, allocations: 249.6 kB / 464.6 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004143/0.5274, allocations: 290.6 kB / 464.9 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.5274, allocations: 35.62 kB / 464.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.955e-05/0.5275, allocations: 64.75 kB / 465 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.5275, allocations: 4 kB / 465 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.5276, allocations: 3.984 kB / 465 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5276, allocations: 0 / 465 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007154/0.5283, allocations: 0.647 MB / 465.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5283, allocations: 4 kB / 465.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-06/0.5283, allocations: 0 / 465.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5283, allocations: 3.938 kB / 465.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.5284, allocations: 19.17 kB / 465.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5284, allocations: 0 / 465.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.5284, allocations: 0 / 465.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004531/0.5288, allocations: 394.5 kB / 466 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.5291, allocations: 239.9 kB / 466.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.5292, allocations: 15.5 kB / 466.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.5293, allocations: 15.84 kB / 466.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.5294, allocations: 31.14 kB / 466.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.298e-05/0.5295, allocations: 59.38 kB / 466.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003963/0.5299, allocations: 372.7 kB / 466.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5299, allocations: 0 / 466.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002733/0.5302, allocations: 43.95 kB / 466.8 MB, free: 11.26 MB / 346.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) * 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.0007748/0.531, allocations: 0.9334 MB / 467.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004153/0.5314, allocations: 415.8 kB / 468.1 MB, free: 9.988 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5314, allocations: 0 / 468.1 MB, free: 9.988 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.5317, allocations: 367.6 kB / 468.5 MB, free: 9.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.5322, allocations: 99.12 kB / 468.6 MB, free: 9.578 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.5334, allocations: 0.5979 MB / 469.2 MB, free: 9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.5339, allocations: 0.8047 MB / 470 MB, free: 8.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.82e-05/0.5339, allocations: 8.656 kB / 470 MB, free: 8.172 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.021e-05/0.534, allocations: 26.98 kB / 470 MB, free: 8.156 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.534, allocations: 0 / 470 MB, free: 8.156 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.5606, allocations: 4.895 MB / 474.9 MB, free: 3.176 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/0.5609, allocations: 136.2 kB / 475.1 MB, free: 2.977 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.589/2.15, allocations: 0 / 475.1 MB, free: 2.977 MB / 346.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