Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.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 4.0.0+maint.om/package.mo", uses=false) 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) 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.WiredX,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX",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.0009184/0.0009184, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.00112/0.00112, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.3 MB / 241.2 MB, free: 5.301 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003128, allocations: 7.531 kB / 300.9 MB, free: 5.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 50.42 MB / 351.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.001924/0.108, allocations: 1.464 MB / 352.8 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.1097, allocations: 0.9088 MB / 353.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.349e-05/0.1098, allocations: 0 / 353.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.1099, allocations: 15.86 kB / 353.7 MB, free: 9 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.321e-05/0.11, allocations: 27.78 kB / 353.8 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.1103, allocations: 67.91 kB / 353.8 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002724/0.1106, allocations: 235.4 kB / 354 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.1107, allocations: 41.84 kB / 354.1 MB, free: 8.633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007653/0.1115, allocations: 0.6395 MB / 354.7 MB, free: 7.992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.1117, allocations: 155.6 kB / 354.9 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.023e-05/0.1118, allocations: 8 kB / 354.9 MB, free: 7.832 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.329e-05/0.1118, allocations: 8 kB / 354.9 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.1119, allocations: 135.5 kB / 355 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.1121, allocations: 125.4 kB / 355.2 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005004/0.1126, allocations: 0.5961 MB / 355.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1126, allocations: 0 / 355.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1126, allocations: 0 / 355.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1126, allocations: 0 / 355.7 MB, free: 6.965 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001056/0.1137, allocations: 1.044 MB / 356.8 MB, free: 5.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.1137, allocations: 8.031 kB / 356.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.965e-05/0.1138, allocations: 54.55 kB / 356.9 MB, free: 5.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.925e-05/0.1139, allocations: 71.16 kB / 356.9 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.1143, allocations: 363.6 kB / 357.3 MB, free: 5.285 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.1144, allocations: 16.19 kB / 357.3 MB, free: 5.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.1144, allocations: 20 kB / 357.3 MB, free: 5.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/0.1149, allocations: 247.2 kB / 357.6 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1149, allocations: 3.938 kB / 357.6 MB, free: 4.996 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.115, allocations: 11.95 kB / 357.6 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.115, allocations: 0 / 357.6 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002861/0.1153, allocations: 144.5 kB / 357.7 MB, free: 4.844 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.1164, allocations: 0.7393 MB / 358.5 MB, free: 4.055 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.1167, allocations: 194.5 kB / 358.6 MB, free: 3.855 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/0.117, allocations: 176.8 kB / 358.8 MB, free: 3.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.117, allocations: 4 kB / 358.8 MB, free: 3.676 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005506/0.1176, allocations: 393.9 kB / 359.2 MB, free: 3.254 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.713e-06/0.1176, allocations: 0 / 359.2 MB, free: 3.254 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001414/0.119, allocations: 0.9239 MB / 360.1 MB, free: 2.273 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.1192, allocations: 281 kB / 360.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.1204, allocations: 0.9529 MB / 361.4 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.473e-05/0.1205, allocations: 41.69 kB / 361.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.097e-05/0.1206, allocations: 130 kB / 361.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.066e-05/0.1207, allocations: 63.25 kB / 361.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.1207, allocations: 8 kB / 361.6 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1208, allocations: 342.8 kB / 361.9 MB, free: 392 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.1211, allocations: 124.2 kB / 362 MB, free: 268 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.1214, allocations: 163.8 kB / 362.2 MB, free: 92 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.1218, allocations: 350.3 kB / 362.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1218, allocations: 0 / 362.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001008/0.1228, allocations: 0.7488 MB / 363.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/0.123, allocations: 245.6 kB / 363.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.123, allocations: 4 kB / 363.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.123, allocations: 0 / 363.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.906e-05/0.123, allocations: 11.94 kB / 363.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.123, allocations: 0 / 363.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.1233, allocations: 36.08 kB / 363.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.1235, allocations: 108.1 kB / 363.7 MB, free: 14.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.0006276/0.1241, allocations: 0.6084 MB / 364.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.411e-05/0.1242, allocations: 79.06 kB / 364.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.1244, allocations: 130.8 kB / 364.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1244, allocations: 4 kB / 364.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1244, allocations: 4 kB / 364.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1244, allocations: 0 / 364.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.1263, allocations: 1.429 MB / 365.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1263, allocations: 0 / 365.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.758e-05/0.1263, allocations: 7.938 kB / 366 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1263, allocations: 0 / 366 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.927e-05/0.1264, allocations: 27.98 kB / 366 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1264, allocations: 0 / 366 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1264, allocations: 3.938 kB / 366 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.1276, allocations: 0.9687 MB / 367 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005679/0.1282, allocations: 415.8 kB / 367.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.1283, allocations: 28 kB / 367.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.1286, allocations: 27.98 kB / 367.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.1287, allocations: 55.92 kB / 367.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.1289, allocations: 107.9 kB / 367.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009223/0.1298, allocations: 0.6977 MB / 368.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1298, allocations: 0 / 368.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.1302, allocations: 95.84 kB / 368.4 MB, free: 9.523 MB / 302.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.001546/0.1318, allocations: 1.537 MB / 369.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009977/0.1328, allocations: 0.8935 MB / 370.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1328, allocations: 0 / 370.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007532/0.1336, allocations: 0.7636 MB / 371.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000946/0.1345, allocations: 238.3 kB / 371.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.1391, allocations: 3.004 MB / 374.8 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006783/0.1398, allocations: 0.9403 MB / 375.7 MB, free: 1.797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002267/0.1401, allocations: 97.27 kB / 375.8 MB, free: 1.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.1402, allocations: 95.33 kB / 375.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1402, allocations: 0 / 375.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.1629, allocations: 10.34 MB / 386.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003178/0.1632, allocations: 176.2 kB / 386.4 MB, free: 7.172 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/2.287, allocations: 3.938 kB / 386.4 MB, free: 7.168 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat