Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_cpp_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.002346/0.002345, allocations: 179.1 kB / 13.66 MB, free: 1.66 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.325/2.325, allocations: 205.2 MB / 219.4 MB, free: 14.3 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.001115/0.001115, allocations: 90.3 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.358e-05/4.367e-05, allocations: 7.984 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 47.56 MB / 369.2 MB, free: 2.137 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4363/0.5429, allocations: 81.27 MB / 450.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.5432, allocations: 66.45 kB / 450.5 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06058/0.6038, allocations: 16.53 MB / 467 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.6039, allocations: 0 / 467 MB, free: 13.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.6039, allocations: 4 kB / 467 MB, free: 13.35 MB / 346.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.0009071/0.6048, allocations: 0.6252 MB / 467.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.6049, allocations: 8.031 kB / 467.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.193e-05/0.605, allocations: 38.55 kB / 467.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.6051, allocations: 39.62 kB / 467.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004599/0.6056, allocations: 253.4 kB / 468 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.6056, allocations: 8 kB / 468 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.656e-05/0.6057, allocations: 8 kB / 468 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.6061, allocations: 129.6 kB / 468.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.6061, allocations: 0 / 468.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.6062, allocations: 8 kB / 468.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.6062, allocations: 0 / 468.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.6064, allocations: 51.98 kB / 468.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.6075, allocations: 480.4 kB / 468.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.6078, allocations: 90.56 kB / 468.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.608, allocations: 84.91 kB / 468.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.6081, allocations: 112 / 468.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004255/0.6085, allocations: 206.6 kB / 469 MB, free: 11.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.806e-06/0.6085, allocations: 8 kB / 469.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009838/0.6095, allocations: 395.9 kB / 469.4 MB, free: 10.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.6097, allocations: 174.2 kB / 469.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.6108, allocations: 462.5 kB / 470.1 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.71e-05/0.6109, allocations: 29.7 kB / 470.1 MB, free: 10.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.611, allocations: 159.6 kB / 470.2 MB, free: 9.852 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.976e-05/0.6111, allocations: 35.55 kB / 470.3 MB, free: 9.816 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.6111, allocations: 7.984 kB / 470.3 MB, free: 9.809 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.6113, allocations: 318.8 kB / 470.6 MB, free: 9.488 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.6115, allocations: 55.98 kB / 470.7 MB, free: 9.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.6117, allocations: 59.98 kB / 470.7 MB, free: 9.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.612, allocations: 166.6 kB / 470.9 MB, free: 9.188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.612, allocations: 0 / 470.9 MB, free: 9.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008329/0.6129, allocations: 356.4 kB / 471.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001339/0.613, allocations: 126.8 kB / 471.3 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.613, allocations: 0 / 471.3 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.933e-05/0.6131, allocations: 7.984 kB / 471.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.006e-05/0.6131, allocations: 3.938 kB / 471.4 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.6131, allocations: 0 / 471.4 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.6134, allocations: 15.95 kB / 471.4 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.6135, allocations: 59.92 kB / 471.4 MB, free: 8.574 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.0002745/0.6138, allocations: 242 kB / 471.7 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.6139, allocations: 43.52 kB / 471.7 MB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.6142, allocations: 63.44 kB / 471.8 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.6142, allocations: 4 kB / 471.8 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.6142, allocations: 0 / 471.8 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.6142, allocations: 0 / 471.8 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.6159, allocations: 0.8057 MB / 472.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.6159, allocations: 0 / 472.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.338e-05/0.6159, allocations: 0 / 472.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.315e-05/0.616, allocations: 4 kB / 472.6 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.616, allocations: 19.92 kB / 472.6 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.289e-06/0.616, allocations: 128 / 472.6 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.616, allocations: 4 kB / 472.6 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.6171, allocations: 0.5173 MB / 473.1 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/0.6177, allocations: 244.5 kB / 473.4 MB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.768e-05/0.6178, allocations: 8 kB / 473.4 MB, free: 6.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.6181, allocations: 15.98 kB / 473.4 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.6183, allocations: 27.91 kB / 473.4 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/0.6185, allocations: 59.94 kB / 473.5 MB, free: 6.355 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000812/0.6193, allocations: 388.9 kB / 473.9 MB, free: 5.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6193, allocations: 0 / 473.9 MB, free: 5.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004216/0.6197, allocations: 44 kB / 473.9 MB, free: 5.938 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.001502/0.6213, allocations: 1.07 MB / 475 MB, free: 4.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007722/0.6221, allocations: 433.5 kB / 475.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.6221, allocations: 0 / 475.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005002/0.6226, allocations: 373.6 kB / 475.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008361/0.6235, allocations: 94.39 kB / 475.8 MB, free: 3.828 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.6255, allocations: 0.6554 MB / 476.5 MB, free: 3.129 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006522/0.6262, allocations: 0.8102 MB / 477.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.568e-05/0.6263, allocations: 23.44 kB / 477.3 MB, free: 2.266 MB / 346.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6263, allocations: 0 / 477.3 MB, free: 2.266 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.713/3.339, allocations: 3.161 MB / 480.5 MB, free: 15.05 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat