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.001287/0.001287, allocations: 95.19 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 205.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002386/0.0002386, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1158, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002014/0.1179, allocations: 1.459 MB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1197, allocations: 0.9362 MB / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.229e-05/0.1198, allocations: 4 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.1199, allocations: 15.84 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.084e-05/0.12, allocations: 35.88 kB / 360.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003093/0.1203, allocations: 75.78 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000228/0.1206, allocations: 147.8 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.1207, allocations: 49.83 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005638/0.1213, allocations: 0.5146 MB / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.1215, allocations: 159.6 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.605e-05/0.1215, allocations: 4 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.259e-05/0.1216, allocations: 8 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1217, allocations: 131.6 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.1219, allocations: 129.3 kB / 361.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005156/0.1224, allocations: 0.6081 MB / 362.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.1224, allocations: 0 / 362.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1224, allocations: 0 / 362.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.1224, allocations: 0 / 362.5 MB, free: 9.488 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.001051/0.1235, allocations: 1.04 MB / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1235, allocations: 8.031 kB / 363.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.463e-05/0.1236, allocations: 50.55 kB / 363.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.1237, allocations: 75.16 kB / 363.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.1242, allocations: 363.7 kB / 364 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.1242, allocations: 12.14 kB / 364 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/0.1243, allocations: 20 kB / 364 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.1248, allocations: 251.2 kB / 364.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1248, allocations: 0 / 364.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.03e-05/0.1249, allocations: 11.94 kB / 364.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.1249, allocations: 4 kB / 364.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002786/0.1252, allocations: 136.5 kB / 364.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.1263, allocations: 0.7316 MB / 365.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.1267, allocations: 206.5 kB / 365.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/0.1267, allocations: 0 / 365.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004918/0.1272, allocations: 401.9 kB / 365.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.1272, allocations: 0 / 365.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00147/0.1287, allocations: 1.233 MB / 367 MB, free: 4.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.1288, allocations: 285 kB / 367.2 MB, free: 4.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.13, allocations: 0.949 MB / 368.2 MB, free: 3.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/0.1301, allocations: 37.7 kB / 368.2 MB, free: 3.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.367e-05/0.1302, allocations: 134 kB / 368.4 MB, free: 3.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.738e-05/0.1303, allocations: 59.25 kB / 368.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.1303, allocations: 12 kB / 368.4 MB, free: 3.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1305, allocations: 334.8 kB / 368.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.1307, allocations: 128.2 kB / 368.9 MB, free: 2.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.1309, allocations: 160.6 kB / 369 MB, free: 2.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.1313, allocations: 354.3 kB / 369.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1313, allocations: 0 / 369.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009351/0.1322, allocations: 0.7487 MB / 370.1 MB, free: 1.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.1324, allocations: 245.6 kB / 370.4 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1324, allocations: 0 / 370.4 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1324, allocations: 4 kB / 370.4 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.464e-05/0.1324, allocations: 11.92 kB / 370.4 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1325, allocations: 0 / 370.4 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.1327, allocations: 47.88 kB / 370.4 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.1329, allocations: 108.1 kB / 370.5 MB, free: 0.7578 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.0005649/0.1334, allocations: 0.6046 MB / 371.2 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.113e-05/0.1335, allocations: 79.09 kB / 371.2 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2147/0.3482, allocations: 122.2 kB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3483, allocations: 1.375 kB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3483, allocations: 0.5 kB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.3483, allocations: 9.016 kB / 371.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.3504, allocations: 1.42 MB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3504, allocations: 1.75 kB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.266e-05/0.3504, allocations: 5.156 kB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3504, allocations: 0 / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.431e-05/0.3505, allocations: 29.91 kB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.3505, allocations: 2.047 kB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3505, allocations: 0.625 kB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.3517, allocations: 0.9652 MB / 373.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006501/0.3523, allocations: 421.3 kB / 374.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.3525, allocations: 21.64 kB / 374.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.3527, allocations: 36.53 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.3529, allocations: 55.7 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/0.353, allocations: 111.1 kB / 374.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001039/0.3541, allocations: 0.6922 MB / 375.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3541, allocations: 0 / 375.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004272/0.3545, allocations: 94.81 kB / 375.2 MB, free: 18.47 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.001358/0.3559, allocations: 1.559 MB / 376.8 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008382/0.3567, allocations: 0.88 MB / 377.6 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3568, allocations: 0 / 377.6 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005067/0.3573, allocations: 0.7608 MB / 378.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009523/0.3582, allocations: 225.2 kB / 378.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/0.3622, allocations: 3.232 MB / 381.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000535/0.3628, allocations: 0.954 MB / 382.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.363, allocations: 92.17 kB / 382.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.3631, allocations: 91.39 kB / 383 MB, free: 13.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3632, allocations: 0 / 383 MB, free: 13.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03129/0.3944, allocations: 10.34 MB / 393.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.3947, allocations: 171.9 kB / 393.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.262, allocations: 0 / 393.5 MB, free: 9.5 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