Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 96.48 kB / 16.93 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 183.9 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004535/0.0004535, allocations: 12 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09813, allocations: 47.59 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001638/0.09981, allocations: 1.182 MB / 329.6 MB, free: 2.812 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1015, allocations: 0.8592 MB / 330.5 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.021e-05/0.1015, allocations: 0 / 330.5 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.056e-05/0.1016, allocations: 7.922 kB / 330.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.747e-05/0.1017, allocations: 15.97 kB / 330.5 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002202/0.1019, allocations: 39.83 kB / 330.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.102, allocations: 67.92 kB / 330.6 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.819e-05/0.1021, allocations: 8.234 kB / 330.6 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000466/0.1026, allocations: 431.2 kB / 331 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.1028, allocations: 79.81 kB / 331.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.1028, allocations: 0 / 331.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.357e-05/0.1028, allocations: 4 kB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.764e-05/0.1029, allocations: 63.77 kB / 331.2 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.103, allocations: 69.52 kB / 331.2 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.1033, allocations: 295.2 kB / 331.5 MB, free: 0.875 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1033, allocations: 8 kB / 331.5 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1033, allocations: 0 / 331.5 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1033, allocations: 0 / 331.5 MB, free: 0.8672 MB / 270.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.0006242/0.1039, allocations: 0.6569 MB / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.104, allocations: 15.97 kB / 332.2 MB, free: 124 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.104, allocations: 38.56 kB / 332.2 MB, free: 76 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.724e-05/0.1041, allocations: 31.62 kB / 332.3 MB, free: 44 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.1044, allocations: 261.3 kB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.1045, allocations: 12 kB / 332.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.1045, allocations: 8 kB / 332.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.1048, allocations: 125.6 kB / 332.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.1048, allocations: 0 / 332.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.1048, allocations: 4 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.1048, allocations: 8 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.105, allocations: 55.97 kB / 332.7 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006614/0.1056, allocations: 464.5 kB / 333.2 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.1058, allocations: 94.55 kB / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.1058, allocations: 0 / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003212/0.1062, allocations: 210.7 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.1062, allocations: 0 / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008394/0.107, allocations: 0.6272 MB / 334.1 MB, free: 14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/0.1071, allocations: 166.2 kB / 334.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005788/0.1077, allocations: 0.5168 MB / 334.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.1078, allocations: 33.7 kB / 334.8 MB, free: 13.24 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.1078, allocations: 109 kB / 334.9 MB, free: 13.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.1079, allocations: 31.59 kB / 335 MB, free: 13.1 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.1079, allocations: 4 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.108, allocations: 318.8 kB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1081, allocations: 59.97 kB / 335.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.1083, allocations: 73.67 kB / 335.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.1084, allocations: 162.8 kB / 335.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1085, allocations: 0 / 335.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004813/0.1089, allocations: 392.6 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.502e-05/0.109, allocations: 122.8 kB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.1091, allocations: 4.125 kB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.1091, allocations: 0 / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.092e-05/0.1091, allocations: 4 kB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.1091, allocations: 112 / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.1093, allocations: 19.92 kB / 336.1 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.837e-05/0.1093, allocations: 59.89 kB / 336.2 MB, free: 11.81 MB / 286.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.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.0003496/0.1097, allocations: 370.8 kB / 336.5 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.768e-05/0.1098, allocations: 39.53 kB / 336.6 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1099, allocations: 63.16 kB / 336.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.1099, allocations: 0 / 336.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1099, allocations: 3.938 kB / 336.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1099, allocations: 3.984 kB / 336.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.1109, allocations: 0.8252 MB / 337.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1109, allocations: 3.984 kB / 337.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.118e-06/0.1109, allocations: 0 / 337.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.111, allocations: 4 kB / 337.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.111, allocations: 12 kB / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.111, allocations: 0 / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.111, allocations: 0 / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006565/0.1117, allocations: 0.5407 MB / 338 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/0.112, allocations: 236.5 kB / 338.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.112, allocations: 12 kB / 338.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.1122, allocations: 19.92 kB / 338.3 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.1123, allocations: 27.97 kB / 338.3 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.365e-05/0.1124, allocations: 59.92 kB / 338.4 MB, free: 9.422 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004478/0.1128, allocations: 386.9 kB / 338.7 MB, free: 9.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1128, allocations: 0 / 338.7 MB, free: 9.047 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.1131, allocations: 51.95 kB / 338.8 MB, free: 8.996 MB / 286.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,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.00103/0.1142, allocations: 1.09 MB / 339.9 MB, free: 7.855 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.1147, allocations: 437.5 kB / 340.3 MB, free: 7.379 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1147, allocations: 0 / 340.3 MB, free: 7.379 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.115, allocations: 377.6 kB / 340.7 MB, free: 6.961 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.1155, allocations: 97.39 kB / 340.8 MB, free: 6.863 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.1177, allocations: 1.595 MB / 342.4 MB, free: 5.219 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.1183, allocations: 0.8139 MB / 343.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.761e-05/0.1183, allocations: 12.64 kB / 343.2 MB, free: 4.367 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.627e-05/0.1184, allocations: 23.44 kB / 343.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1184, allocations: 0 / 343.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.1346, allocations: 5.29 MB / 348.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.1348, allocations: 170.1 kB / 348.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/1.922, allocations: 0 / 348.7 MB, free: 14.73 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat