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.001471/0.001471, allocations: 184.4 kB / 16.4 MB, free: 5.746 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.241/2.241, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001178/0.001178, allocations: 104.8 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004219/0.0004222, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3655, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001833/0.3674, allocations: 1.193 MB / 375.8 MB, free: 44.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002566/0.37, allocations: 0.8581 MB / 376.7 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.017e-05/0.3701, allocations: 1.562 kB / 376.7 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.409e-05/0.3702, allocations: 7.922 kB / 376.7 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.3703, allocations: 12.36 kB / 376.7 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.3706, allocations: 35.33 kB / 376.7 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.3707, allocations: 70.83 kB / 376.8 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3708, allocations: 20.38 kB / 376.8 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006697/0.3715, allocations: 423.8 kB / 377.2 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.3717, allocations: 78.59 kB / 377.3 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.3718, allocations: 3.219 kB / 377.3 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.713e-05/0.3718, allocations: 3.25 kB / 377.3 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.706e-05/0.3719, allocations: 64.64 kB / 377.4 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.416e-05/0.372, allocations: 68.55 kB / 377.4 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.3724, allocations: 288.6 kB / 377.7 MB, free: 43.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.3724, allocations: 4 kB / 377.7 MB, free: 43.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3724, allocations: 0 / 377.7 MB, free: 43.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.393e-06/0.3724, allocations: 3.938 kB / 377.7 MB, free: 43.24 MB / 298.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.0007544/0.3732, allocations: 0.6607 MB / 378.4 MB, free: 42.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.3732, allocations: 9.062 kB / 378.4 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.3733, allocations: 43.14 kB / 378.4 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.395e-05/0.3734, allocations: 34.5 kB / 378.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.3737, allocations: 265.6 kB / 378.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.3738, allocations: 3.719 kB / 378.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.3738, allocations: 16.22 kB / 378.8 MB, free: 42.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004179/0.3743, allocations: 125.1 kB / 378.9 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.3743, allocations: 0 / 378.9 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.3743, allocations: 11.27 kB / 378.9 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.3743, allocations: 1.062 kB / 378.9 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000233/0.3746, allocations: 58.38 kB / 379 MB, free: 42.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008684/0.3755, allocations: 464.8 kB / 379.4 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.3758, allocations: 96.44 kB / 379.5 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.3758, allocations: 0.9688 kB / 379.5 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004527/0.3763, allocations: 204.1 kB / 379.7 MB, free: 41.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.574e-06/0.3763, allocations: 5.438 kB / 379.7 MB, free: 41.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001299/0.3776, allocations: 0.6322 MB / 380.3 MB, free: 41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.3777, allocations: 172.9 kB / 380.5 MB, free: 40.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009831/0.3787, allocations: 0.5157 MB / 381 MB, free: 40.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.353e-05/0.3787, allocations: 30.42 kB / 381.1 MB, free: 40.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.406e-05/0.3788, allocations: 161.2 kB / 381.2 MB, free: 40.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.338e-05/0.3789, allocations: 30.22 kB / 381.2 MB, free: 40.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.3789, allocations: 3.75 kB / 381.2 MB, free: 40.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.617e-05/0.379, allocations: 320 kB / 381.6 MB, free: 39.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.3792, allocations: 55.84 kB / 381.6 MB, free: 39.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.3795, allocations: 75.41 kB / 381.7 MB, free: 39.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.3797, allocations: 168.6 kB / 381.8 MB, free: 39.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3797, allocations: 0 / 381.8 MB, free: 39.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008431/0.3806, allocations: 375.4 kB / 382.2 MB, free: 39.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-05/0.3807, allocations: 122 kB / 382.3 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.008e-06/0.3807, allocations: 3.984 kB / 382.3 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.798e-05/0.3808, allocations: 1.25 kB / 382.3 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.757e-05/0.3808, allocations: 1.25 kB / 382.3 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3808, allocations: 1.594 kB / 382.3 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002997/0.3811, allocations: 21.59 kB / 382.4 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.3813, allocations: 65.94 kB / 382.4 MB, free: 39.3 MB / 298.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.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,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: 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.0005429/0.3818, allocations: 361.2 kB / 382.8 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.974e-05/0.3819, allocations: 47.56 kB / 382.8 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.3821, allocations: 67.02 kB / 382.9 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.269e-06/0.3821, allocations: 1.469 kB / 382.9 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3821, allocations: 0 / 382.9 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3821, allocations: 4 kB / 382.9 MB, free: 38.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001392/0.3835, allocations: 0.8195 MB / 383.7 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3835, allocations: 0 / 383.7 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.036e-05/0.3835, allocations: 0 / 383.7 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3836, allocations: 1.062 kB / 383.7 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/0.3836, allocations: 14.83 kB / 383.7 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3836, allocations: 1 kB / 383.7 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3836, allocations: 0 / 383.7 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009915/0.3846, allocations: 0.5465 MB / 384.3 MB, free: 37.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005223/0.3852, allocations: 251.2 kB / 384.5 MB, free: 37.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.459e-05/0.3853, allocations: 6.531 kB / 384.5 MB, free: 37.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.3855, allocations: 17.67 kB / 384.5 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.3857, allocations: 22.78 kB / 384.6 MB, free: 37.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.3858, allocations: 60.25 kB / 384.6 MB, free: 37.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007211/0.3865, allocations: 390.8 kB / 385 MB, free: 37.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3866, allocations: 0 / 385 MB, free: 37.35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004475/0.387, allocations: 49.86 kB / 385.1 MB, free: 37.34 MB / 298.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) * 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.001323/0.3883, allocations: 1.087 MB / 386.1 MB, free: 36.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007432/0.3891, allocations: 433.6 kB / 386.6 MB, free: 36.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3891, allocations: 0 / 386.6 MB, free: 36.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000421/0.3896, allocations: 372.5 kB / 386.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008078/0.3904, allocations: 113.2 kB / 387 MB, free: 35.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003273/0.3937, allocations: 1.647 MB / 388.7 MB, free: 33.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000419/0.3942, allocations: 0.8061 MB / 389.5 MB, free: 33.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.925e-05/0.3942, allocations: 31.42 kB / 389.5 MB, free: 33.11 MB / 298.7 MB Notification: Performance of SimCode: time 1.383e-06/0.3942, allocations: 0 / 389.5 MB, free: 33.11 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.721/3.115, allocations: 3.101 MB / 392.6 MB, free: 29.95 MB / 298.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