Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.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.NRXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER",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.001567/0.001571, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001151/0.001151, allocations: 90.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004058/0.0004058, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002259/0.1166, allocations: 1.188 MB / 375.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00288/0.1195, allocations: 0.8562 MB / 376.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.89e-05/0.1196, allocations: 4 kB / 376.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.428e-05/0.1197, allocations: 7.922 kB / 376.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.1198, allocations: 11.97 kB / 376.7 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.1201, allocations: 39.89 kB / 376.7 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.1203, allocations: 67.86 kB / 376.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.1204, allocations: 16.23 kB / 376.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007474/0.1212, allocations: 423.2 kB / 377.2 MB, free: 12.72 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.1214, allocations: 75.81 kB / 377.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.196e-05/0.1214, allocations: 4 kB / 377.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.694e-05/0.1215, allocations: 4 kB / 377.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.1216, allocations: 55.83 kB / 377.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.1217, allocations: 81.5 kB / 377.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004189/0.1222, allocations: 287.3 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1222, allocations: 4 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1222, allocations: 0 / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.1222, allocations: 3.938 kB / 377.7 MB, free: 12.21 MB / 282.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.0009918/0.1232, allocations: 0.6607 MB / 378.4 MB, free: 11.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.1233, allocations: 8.031 kB / 378.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.242e-05/0.1234, allocations: 42.5 kB / 378.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.592e-05/0.1235, allocations: 35.62 kB / 378.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.1239, allocations: 261.3 kB / 378.7 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.1239, allocations: 4 kB / 378.7 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.499e-05/0.124, allocations: 15.92 kB / 378.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.1245, allocations: 133.6 kB / 378.9 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1245, allocations: 0 / 378.9 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.647e-05/0.1246, allocations: 8 kB / 378.9 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1246, allocations: 0 / 378.9 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002393/0.1248, allocations: 59.97 kB / 379 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009735/0.1258, allocations: 464.5 kB / 379.4 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.1261, allocations: 90.55 kB / 379.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.1262, allocations: 4 kB / 379.5 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005361/0.1267, allocations: 199.6 kB / 379.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 3.186e-06/0.1267, allocations: 4 kB / 379.7 MB, free: 10.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001447/0.1282, allocations: 0.631 MB / 380.3 MB, free: 9.332 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.1283, allocations: 174.2 kB / 380.5 MB, free: 9.125 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.1294, allocations: 0.5168 MB / 381 MB, free: 8.602 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.968e-05/0.1295, allocations: 33.7 kB / 381.1 MB, free: 8.562 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.1296, allocations: 163.5 kB / 381.2 MB, free: 8.402 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.636e-05/0.1297, allocations: 35.62 kB / 381.2 MB, free: 8.367 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.661e-05/0.1297, allocations: 7.938 kB / 381.3 MB, free: 8.359 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1299, allocations: 310.8 kB / 381.6 MB, free: 8.047 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.1301, allocations: 59.97 kB / 381.6 MB, free: 7.988 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/0.1304, allocations: 82.52 kB / 381.7 MB, free: 7.902 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.1307, allocations: 158.8 kB / 381.9 MB, free: 7.723 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1307, allocations: 0 / 381.9 MB, free: 7.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009311/0.1317, allocations: 380.7 kB / 382.2 MB, free: 7.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.1318, allocations: 126.8 kB / 382.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.1319, allocations: 0 / 382.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.1319, allocations: 0 / 382.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.703e-05/0.1319, allocations: 0 / 382.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1319, allocations: 0 / 382.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.1322, allocations: 24.03 kB / 382.4 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.1324, allocations: 63.83 kB / 382.4 MB, free: 7.086 MB / 282.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.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.0005669/0.1329, allocations: 358.8 kB / 382.8 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.277e-05/0.133, allocations: 35.62 kB / 382.8 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.1332, allocations: 63.16 kB / 382.9 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1332, allocations: 3.984 kB / 382.9 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1332, allocations: 3.938 kB / 382.9 MB, free: 6.594 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1332, allocations: 0 / 382.9 MB, free: 6.594 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.1349, allocations: 0.8368 MB / 383.7 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1349, allocations: 0 / 383.7 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.13e-05/0.135, allocations: 0 / 383.7 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.135, allocations: 0 / 383.7 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.135, allocations: 12 kB / 383.7 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.135, allocations: 0 / 383.7 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.135, allocations: 0 / 383.7 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.1362, allocations: 0.5407 MB / 384.3 MB, free: 5.082 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000578/0.1368, allocations: 240.5 kB / 384.5 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.168e-05/0.1369, allocations: 15.98 kB / 384.5 MB, free: 4.812 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.1371, allocations: 12.16 kB / 384.5 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.1373, allocations: 27.97 kB / 384.6 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.1375, allocations: 63.92 kB / 384.6 MB, free: 4.711 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000804/0.1383, allocations: 386.9 kB / 385 MB, free: 4.336 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1383, allocations: 0 / 385 MB, free: 4.336 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004809/0.1388, allocations: 55.89 kB / 385.1 MB, free: 4.281 MB / 282.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,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.00167/0.1405, allocations: 1.085 MB / 386.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008751/0.1414, allocations: 441.5 kB / 386.6 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1414, allocations: 0 / 386.6 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005361/0.1419, allocations: 377.6 kB / 386.9 MB, free: 2.246 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008475/0.1428, allocations: 97.52 kB / 387 MB, free: 2.148 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003827/0.1466, allocations: 1.644 MB / 388.7 MB, free: 460 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2562/0.4029, allocations: 0.8033 MB / 389.5 MB, free: 20.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/0.4031, allocations: 25.86 kB / 389.5 MB, free: 20.56 MB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4031, allocations: 0.8438 kB / 389.5 MB, free: 20.56 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.663/3.066, allocations: 3.104 MB / 392.6 MB, free: 20.3 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat