Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 198.4 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 98.83 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.11e-05/2.113e-05, allocations: 4 kB / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1227, allocations: 51.47 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3721/0.4948, allocations: 82.33 MB / 477.6 MB, free: 9.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001658/0.495, allocations: 66.86 kB / 477.7 MB, free: 9.895 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02872/0.5237, allocations: 16.71 MB / 494.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.5238, allocations: 0 / 494.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.5238, allocations: 4 kB / 494.4 MB, free: 13.04 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.0007932/0.5246, allocations: 0.6158 MB / 495 MB, free: 12.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.5247, allocations: 12.03 kB / 495 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.5249, allocations: 31.62 kB / 495 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.5253, allocations: 258.7 kB / 495.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.5254, allocations: 19.12 kB / 495.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.679e-05/0.5254, allocations: 4 kB / 495.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001546/0.5256, allocations: 49.98 kB / 495.3 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.5258, allocations: 121.5 kB / 495.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.5258, allocations: 4 kB / 495.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.5259, allocations: 4 kB / 495.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.5259, allocations: 0 / 495.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.5266, allocations: 446.2 kB / 495.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.5268, allocations: 90.03 kB / 496 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.5269, allocations: 72.09 kB / 496.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.5269, allocations: 0 / 496.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.5272, allocations: 203.3 kB / 496.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.5272, allocations: 4 kB / 496.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.000522/0.5277, allocations: 273.9 kB / 496.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.317e-05/0.5278, allocations: 161.6 kB / 496.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000581/0.5284, allocations: 449.8 kB / 497.1 MB, free: 10.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.5285, allocations: 33.2 kB / 497.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.538e-05/0.5285, allocations: 94.83 kB / 497.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.217e-05/0.5286, allocations: 31.23 kB / 497.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.799e-05/0.5286, allocations: 4 kB / 497.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.5287, allocations: 333.5 kB / 497.6 MB, free: 9.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.5288, allocations: 49.3 kB / 497.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.724e-05/0.5289, allocations: 55.06 kB / 497.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.297e-05/0.529, allocations: 41.72 kB / 497.8 MB, free: 9.816 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.529, allocations: 0 / 497.8 MB, free: 9.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000405/0.5294, allocations: 246.3 kB / 498 MB, free: 9.617 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.867e-05/0.5295, allocations: 122.4 kB / 498.1 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.5296, allocations: 0 / 498.1 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.5296, allocations: 3.984 kB / 498.1 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.067e-05/0.5296, allocations: 0.9375 kB / 498.1 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.5296, allocations: 112 / 498.1 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.5298, allocations: 27.61 kB / 498.2 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-05/0.5299, allocations: 56.09 kB / 498.2 MB, free: 9.395 MB / 362.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.0001844/0.5301, allocations: 252.7 kB / 498.5 MB, free: 9.121 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004367/0.5305, allocations: 293.2 kB / 498.7 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.5306, allocations: 31.62 kB / 498.8 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.5307, allocations: 72.44 kB / 498.8 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.5307, allocations: 0 / 498.8 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5307, allocations: 0 / 498.8 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.5307, allocations: 5.875 kB / 498.8 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000702/0.5314, allocations: 0.6345 MB / 499.5 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.5314, allocations: 192 / 499.5 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.296e-06/0.5314, allocations: 7.938 kB / 499.5 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.5314, allocations: 0 / 499.5 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.5315, allocations: 15.94 kB / 499.5 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.5315, allocations: 0 / 499.5 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5315, allocations: 0 / 499.5 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004474/0.5319, allocations: 395.2 kB / 499.9 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002857/0.5322, allocations: 245.9 kB / 0.4884 GB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.67e-05/0.5323, allocations: 10.94 kB / 0.4884 GB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.5325, allocations: 11.91 kB / 0.4884 GB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.5326, allocations: 27.72 kB / 0.4885 GB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.135e-05/0.5326, allocations: 59.92 kB / 0.4885 GB, free: 7.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003984/0.533, allocations: 375.2 kB / 0.4889 GB, free: 7.203 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5331, allocations: 0 / 0.4889 GB, free: 7.203 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002779/0.5333, allocations: 47.95 kB / 0.4889 GB, free: 7.156 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) * 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.0007972/0.5341, allocations: 0.9353 MB / 0.4898 GB, free: 6.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003979/0.5346, allocations: 414 kB / 0.4902 GB, free: 5.891 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5346, allocations: 0 / 0.4902 GB, free: 5.891 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.5348, allocations: 371.8 kB / 0.4906 GB, free: 5.559 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.5354, allocations: 98.42 kB / 0.4907 GB, free: 5.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.5364, allocations: 0.5987 MB / 0.4913 GB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.5369, allocations: 0.8137 MB / 0.4921 GB, free: 4.078 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.955e-05/0.5369, allocations: 4.672 kB / 0.4921 GB, free: 4.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.034e-05/0.5369, allocations: 26.75 kB / 0.4921 GB, free: 4.062 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.537, allocations: 4 kB / 0.4921 GB, free: 4.059 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02163/0.5586, allocations: 4.896 MB / 0.4969 GB, free: 15.13 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.5588, allocations: 131.7 kB / 0.497 GB, free: 14.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.556/2.115, allocations: 4.031 kB / 0.497 GB, free: 14.93 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat