Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009255/0.0009255, allocations: 175.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008767/0.0008767, allocations: 94.03 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.783e-05/1.785e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09547/0.0955, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3868/0.4824, allocations: 81.51 MB / 469.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.4826, allocations: 67.97 kB / 469.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03194/0.5146, allocations: 16.64 MB / 485.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5146, allocations: 0 / 485.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.5147, allocations: 4 kB / 485.8 MB, free: 12.62 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.0007073/0.5154, allocations: 0.6136 MB / 486.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.5154, allocations: 12.03 kB / 486.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.5156, allocations: 31.62 kB / 486.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003707/0.5159, allocations: 263.6 kB / 486.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.516, allocations: 8 kB / 486.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.516, allocations: 4 kB / 486.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001481/0.5162, allocations: 59.88 kB / 486.8 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.5164, allocations: 117.6 kB / 486.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.5164, allocations: 0 / 486.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.5164, allocations: 4 kB / 486.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.5164, allocations: 0 / 486.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007096/0.5171, allocations: 445 kB / 487.3 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.5173, allocations: 94.52 kB / 487.4 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.5174, allocations: 72.91 kB / 487.5 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.005e-05/0.5175, allocations: 0 / 487.5 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002654/0.5177, allocations: 210.6 kB / 487.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.914e-06/0.5177, allocations: 0 / 487.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005272/0.5183, allocations: 273.3 kB / 487.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.965e-05/0.5184, allocations: 162.2 kB / 488.1 MB, free: 10.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005604/0.5189, allocations: 448.9 kB / 488.5 MB, free: 9.613 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.519, allocations: 33.69 kB / 488.6 MB, free: 9.574 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.158e-05/0.5191, allocations: 93.45 kB / 488.7 MB, free: 9.477 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.541e-05/0.5191, allocations: 35.64 kB / 488.7 MB, free: 9.441 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/0.5191, allocations: 4 kB / 488.7 MB, free: 9.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5193, allocations: 326.8 kB / 489 MB, free: 9.109 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.207e-05/0.5194, allocations: 48 kB / 489.1 MB, free: 9.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.122e-05/0.5195, allocations: 51.98 kB / 489.1 MB, free: 9.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.578e-05/0.5196, allocations: 49.38 kB / 489.2 MB, free: 8.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.5196, allocations: 0 / 489.2 MB, free: 8.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004096/0.52, allocations: 249.3 kB / 489.4 MB, free: 8.715 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.5201, allocations: 130.7 kB / 489.5 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.5201, allocations: 0 / 489.5 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.5201, allocations: 0 / 489.5 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.31e-05/0.5202, allocations: 4 kB / 489.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.5202, allocations: 0 / 489.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.5204, allocations: 19.92 kB / 489.6 MB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.569e-05/0.5205, allocations: 56.05 kB / 489.6 MB, free: 8.484 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,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,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 () * 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.0002362/0.5207, allocations: 246 kB / 489.9 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004842/0.5212, allocations: 293.1 kB / 490.1 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.581e-05/0.5212, allocations: 35.62 kB / 490.2 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/0.5214, allocations: 71.42 kB / 490.3 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.5214, allocations: 4 kB / 490.3 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5214, allocations: 0 / 490.3 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.5214, allocations: 0 / 490.3 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009787/0.5224, allocations: 0.6432 MB / 490.9 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.5224, allocations: 0 / 490.9 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-06/0.5224, allocations: 0 / 490.9 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.5225, allocations: 0 / 490.9 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.5225, allocations: 16.19 kB / 490.9 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.349e-06/0.5225, allocations: 4 kB / 490.9 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.5225, allocations: 0 / 490.9 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005341/0.5231, allocations: 395 kB / 491.3 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000325/0.5234, allocations: 240.5 kB / 491.5 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/0.5235, allocations: 11.98 kB / 491.6 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.5236, allocations: 15.92 kB / 491.6 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.5238, allocations: 27.97 kB / 491.6 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.38e-05/0.5238, allocations: 59.92 kB / 491.7 MB, free: 6.328 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004465/0.5243, allocations: 378.7 kB / 492 MB, free: 5.961 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5243, allocations: 0 / 492 MB, free: 5.961 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003034/0.5246, allocations: 44 kB / 492.1 MB, free: 5.918 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,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) * 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.0008616/0.5255, allocations: 0.9294 MB / 493 MB, free: 4.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004765/0.526, allocations: 425.5 kB / 493.4 MB, free: 4.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.526, allocations: 8 kB / 493.4 MB, free: 4.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003119/0.5263, allocations: 361.6 kB / 493.8 MB, free: 4.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005259/0.5268, allocations: 93.92 kB / 493.9 MB, free: 3.992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.528, allocations: 0.6021 MB / 494.5 MB, free: 3.355 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.5284, allocations: 0.8023 MB / 495.3 MB, free: 2.527 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.601e-05/0.5284, allocations: 17.56 kB / 495.3 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.967e-05/0.5285, allocations: 27.44 kB / 495.3 MB, free: 2.484 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5285, allocations: 0 / 495.3 MB, free: 2.484 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.5511, allocations: 4.905 MB / 0.4885 GB, free: 13.51 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/0.5514, allocations: 133.2 kB / 0.4886 GB, free: 13.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.555/2.107, allocations: 0 / 0.4886 GB, free: 13.32 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat