Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00093/0.0009297, allocations: 98.5 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 194.5 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.3 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.000266, allocations: 11.98 kB / 306.8 MB, free: 1.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1224, allocations: 51.49 MB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002162/0.1246, allocations: 1.198 MB / 359.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.1267, allocations: 0.8542 MB / 360.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.883e-05/0.1268, allocations: 0 / 360.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.124e-05/0.1269, allocations: 3.984 kB / 360.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.835e-05/0.1269, allocations: 15.86 kB / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.1272, allocations: 35.97 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.1274, allocations: 107.7 kB / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1275, allocations: 16.22 kB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006786/0.1282, allocations: 499.1 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.1284, allocations: 71.83 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.1284, allocations: 4 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.519e-05/0.1284, allocations: 4 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.646e-05/0.1285, allocations: 63.77 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.935e-05/0.1286, allocations: 73.52 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003158/0.1289, allocations: 295.3 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.129, allocations: 0 / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.129, allocations: 0 / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.129, allocations: 0 / 361.5 MB, free: 10.5 MB / 302.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.0007531/0.1297, allocations: 0.6608 MB / 362.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1298, allocations: 8.031 kB / 362.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.34e-05/0.1299, allocations: 42.56 kB / 362.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.938e-05/0.1299, allocations: 39.47 kB / 362.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.1302, allocations: 261.3 kB / 362.5 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.1303, allocations: 7.953 kB / 362.5 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.1303, allocations: 12 kB / 362.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.1306, allocations: 129.5 kB / 362.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.1306, allocations: 0 / 362.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.1307, allocations: 8 kB / 362.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1307, allocations: 4 kB / 362.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.1309, allocations: 63.89 kB / 362.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006549/0.1315, allocations: 452.6 kB / 363.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.1317, allocations: 98.55 kB / 363.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.1319, allocations: 88.88 kB / 363.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.1319, allocations: 0 / 363.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/0.1322, allocations: 210.5 kB / 363.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.1322, allocations: 0 / 363.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007906/0.133, allocations: 471.8 kB / 364 MB, free: 7.734 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.1332, allocations: 170.2 kB / 364.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006771/0.1338, allocations: 0.5208 MB / 364.7 MB, free: 7.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.1339, allocations: 29.7 kB / 364.7 MB, free: 6.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.593e-05/0.134, allocations: 105 kB / 364.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.987e-05/0.134, allocations: 27.64 kB / 364.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.734e-05/0.1341, allocations: 4 kB / 364.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.1343, allocations: 326.8 kB / 365.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.1344, allocations: 55.97 kB / 365.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.1346, allocations: 69.69 kB / 365.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.1348, allocations: 178.9 kB / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1348, allocations: 0 / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000529/0.1353, allocations: 380.3 kB / 365.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.1355, allocations: 126.8 kB / 366 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1355, allocations: 3.984 kB / 366 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1355, allocations: 0 / 366 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.558e-05/0.1355, allocations: 4 kB / 366 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/0.1355, allocations: 0 / 366 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.1357, allocations: 11.91 kB / 366 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.229e-05/0.1358, allocations: 68.08 kB / 366.1 MB, free: 5.539 MB / 302.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.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0003926/0.1362, allocations: 371.8 kB / 366.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.1362, allocations: 35.62 kB / 366.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1364, allocations: 63.16 kB / 366.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1364, allocations: 112 / 366.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1364, allocations: 11.92 kB / 366.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1364, allocations: 0 / 366.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009727/0.1374, allocations: 0.8095 MB / 367.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1374, allocations: 7.938 kB / 367.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.717e-06/0.1374, allocations: 0 / 367.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1374, allocations: 0 / 367.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.228e-05/0.1374, allocations: 19.98 kB / 367.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.1374, allocations: 3.938 kB / 367.4 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1375, allocations: 0 / 367.4 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006472/0.1381, allocations: 0.5406 MB / 367.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.1384, allocations: 244.5 kB / 368.2 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.211e-05/0.1385, allocations: 12 kB / 368.2 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.1386, allocations: 15.98 kB / 368.2 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.1387, allocations: 27.97 kB / 368.2 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.59e-05/0.1388, allocations: 52 kB / 368.3 MB, free: 3.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004676/0.1393, allocations: 394.8 kB / 368.7 MB, free: 2.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1393, allocations: 0 / 368.7 MB, free: 2.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002784/0.1396, allocations: 47.84 kB / 368.7 MB, free: 2.73 MB / 302.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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.000976/0.1405, allocations: 1.096 MB / 369.8 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004985/0.1411, allocations: 437.5 kB / 370.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1411, allocations: 0 / 370.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003132/0.1414, allocations: 385.5 kB / 370.6 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.142, allocations: 104 kB / 370.7 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2161/0.3581, allocations: 1.549 MB / 372.3 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.3585, allocations: 0.8034 MB / 373.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.372e-05/0.3586, allocations: 10.34 kB / 373.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.358e-05/0.3586, allocations: 24.64 kB / 373.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3586, allocations: 0 / 373.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.3781, allocations: 5.318 MB / 378.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.3783, allocations: 173.2 kB / 378.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.209, allocations: 1.062 kB / 378.6 MB, free: 17.86 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat