Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000828/0.000828, allocations: 98.5 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 194.5 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002414/0.0002415, allocations: 11.98 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1054, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.001799/0.1072, allocations: 1.475 MB / 359.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.109, allocations: 0.9361 MB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.705e-05/0.1091, allocations: 3.938 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.1093, allocations: 15.91 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.558e-05/0.1094, allocations: 23.78 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.1098, allocations: 71.86 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000344/0.1101, allocations: 235.4 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1103, allocations: 41.78 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008792/0.1112, allocations: 0.6395 MB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.1114, allocations: 163.6 kB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.348e-05/0.1115, allocations: 8 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.371e-05/0.1115, allocations: 8 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.1117, allocations: 131.5 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.1118, allocations: 121.3 kB / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004907/0.1123, allocations: 0.6042 MB / 362.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1123, allocations: 0 / 362.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1123, allocations: 0 / 362.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1123, allocations: 0 / 362.8 MB, free: 9.492 MB / 302.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.001039/0.1134, allocations: 1.044 MB / 363.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.1134, allocations: 8.031 kB / 363.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.804e-05/0.1135, allocations: 54.55 kB / 363.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.612e-05/0.1136, allocations: 71.16 kB / 363.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.114, allocations: 371.6 kB / 364.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.1141, allocations: 16.19 kB / 364.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/0.1141, allocations: 20 kB / 364.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005054/0.1146, allocations: 246.2 kB / 364.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1146, allocations: 3.938 kB / 364.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.1147, allocations: 12 kB / 364.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1147, allocations: 0 / 364.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.115, allocations: 140.6 kB / 364.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.1161, allocations: 0.7354 MB / 365.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.1164, allocations: 198.4 kB / 365.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/0.1167, allocations: 180.8 kB / 365.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.1168, allocations: 0 / 365.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005393/0.1173, allocations: 389.8 kB / 366.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.553e-06/0.1173, allocations: 0 / 366.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00139/0.1187, allocations: 0.9278 MB / 367.1 MB, free: 4.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.1189, allocations: 281 kB / 367.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.1201, allocations: 0.9529 MB / 368.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.763e-05/0.1201, allocations: 41.7 kB / 368.4 MB, free: 3.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.1202, allocations: 122 kB / 368.5 MB, free: 3.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.389e-05/0.1203, allocations: 67.19 kB / 368.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.1203, allocations: 8 kB / 368.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1204, allocations: 334.8 kB / 368.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.1207, allocations: 128.2 kB / 369 MB, free: 2.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.121, allocations: 160.7 kB / 369.2 MB, free: 2.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.1213, allocations: 354.2 kB / 369.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1213, allocations: 0 / 369.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000959/0.1223, allocations: 0.7487 MB / 370.3 MB, free: 1.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.1224, allocations: 245.6 kB / 370.5 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1225, allocations: 4 kB / 370.5 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1225, allocations: 0 / 370.5 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.763e-05/0.1225, allocations: 8 kB / 370.6 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1225, allocations: 11.98 kB / 370.6 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.1228, allocations: 43.81 kB / 370.6 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.123, allocations: 104.1 kB / 370.7 MB, free: 0.9688 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.0006825/0.1236, allocations: 0.6095 MB / 371.3 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.507e-05/0.1237, allocations: 83.14 kB / 371.4 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002003/0.124, allocations: 122.9 kB / 371.5 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.124, allocations: 8 kB / 371.5 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.124, allocations: 0 / 371.5 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.124, allocations: 3.953 kB / 371.5 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.245/0.369, allocations: 1.414 MB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.369, allocations: 0 / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.673e-05/0.3691, allocations: 5.797 kB / 373 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.3691, allocations: 0.9688 kB / 373 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.781e-05/0.3692, allocations: 29.78 kB / 373 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.087e-05/0.3692, allocations: 7.141 kB / 373 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3692, allocations: 1.781 kB / 373 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.3709, allocations: 0.9613 MB / 374 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008757/0.3718, allocations: 417.7 kB / 374.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.3719, allocations: 22.84 kB / 374.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.3722, allocations: 32.5 kB / 374.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002932/0.3725, allocations: 59.69 kB / 374.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/0.3728, allocations: 110.9 kB / 374.6 MB, free: 18.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001735/0.3746, allocations: 0.688 MB / 375.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3746, allocations: 0 / 375.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006271/0.3752, allocations: 95.72 kB / 375.4 MB, free: 18.61 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.00228/0.3775, allocations: 1.55 MB / 376.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.379, allocations: 0.8874 MB / 377.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3791, allocations: 0 / 377.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3801, allocations: 0.7551 MB / 378.6 MB, free: 16.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.3815, allocations: 244.9 kB / 378.8 MB, free: 16.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006255/0.3878, allocations: 2.995 MB / 381.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009049/0.3887, allocations: 0.939 MB / 382.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004799/0.3892, allocations: 95.03 kB / 382.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.3894, allocations: 86.25 kB / 382.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of SimCode: time 2.395e-06/0.3894, allocations: 4 kB / 382.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.4185, allocations: 10.37 MB / 393.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001284/0.4186, allocations: 174.5 kB / 393.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.384, allocations: 3.828 kB / 393.4 MB, free: 9.98 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat