Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001554/0.001554, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001246/0.001246, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005726/0.0005728, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1247, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002492/0.1273, allocations: 1.449 MB / 376.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.1304, allocations: 0.9497 MB / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.1306, allocations: 0 / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.1308, allocations: 23.91 kB / 377.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.1309, allocations: 31.88 kB / 377.1 MB, free: 12.87 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.1313, allocations: 67.84 kB / 377.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003235/0.1317, allocations: 151.8 kB / 377.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1319, allocations: 49.77 kB / 377.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008933/0.1328, allocations: 0.5186 MB / 377.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.133, allocations: 159.6 kB / 378 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.536e-05/0.1332, allocations: 8 kB / 378 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.1333, allocations: 8 kB / 378 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.1335, allocations: 135.5 kB / 378.2 MB, free: 11.78 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.1336, allocations: 117.4 kB / 378.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007804/0.1344, allocations: 0.6003 MB / 378.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1345, allocations: 4 kB / 378.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1345, allocations: 0 / 378.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1345, allocations: 0 / 378.9 MB, free: 11.05 MB / 282.7 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.001516/0.136, allocations: 1.04 MB / 379.9 MB, free: 9.914 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.1361, allocations: 8.031 kB / 379.9 MB, free: 9.906 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.1362, allocations: 54.55 kB / 380 MB, free: 9.844 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.1364, allocations: 75.09 kB / 380.1 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006488/0.1371, allocations: 363.6 kB / 380.4 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.807e-05/0.1371, allocations: 20.19 kB / 380.4 MB, free: 9.355 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.342e-05/0.1372, allocations: 20 kB / 380.5 MB, free: 9.336 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008334/0.1381, allocations: 247.2 kB / 380.7 MB, free: 9.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1381, allocations: 0 / 380.7 MB, free: 9.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.262e-05/0.1382, allocations: 15.94 kB / 380.7 MB, free: 9.074 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.1382, allocations: 3.984 kB / 380.7 MB, free: 9.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005456/0.1387, allocations: 136.6 kB / 380.9 MB, free: 8.938 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.1405, allocations: 0.7316 MB / 381.6 MB, free: 8.156 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006249/0.1412, allocations: 202.5 kB / 381.8 MB, free: 7.949 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.1412, allocations: 0 / 381.8 MB, free: 7.949 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008774/0.1421, allocations: 385.9 kB / 382.2 MB, free: 7.535 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.484e-06/0.1421, allocations: 0 / 382.2 MB, free: 7.535 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.002703/0.1448, allocations: 1.25 MB / 383.4 MB, free: 6.156 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001994/0.145, allocations: 285 kB / 383.7 MB, free: 5.816 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/0.1471, allocations: 0.949 MB / 384.6 MB, free: 4.859 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.1473, allocations: 37.7 kB / 384.7 MB, free: 4.816 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.1474, allocations: 184.4 kB / 384.9 MB, free: 4.633 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.1476, allocations: 67.25 kB / 384.9 MB, free: 4.566 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.865e-05/0.1476, allocations: 11.88 kB / 384.9 MB, free: 4.555 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1478, allocations: 330.8 kB / 385.3 MB, free: 4.223 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004663/0.1483, allocations: 120.2 kB / 385.4 MB, free: 4.105 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.1488, allocations: 159.9 kB / 385.5 MB, free: 3.938 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00059/0.1494, allocations: 341.6 kB / 385.9 MB, free: 3.555 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1494, allocations: 0 / 385.9 MB, free: 3.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001792/0.1512, allocations: 0.7412 MB / 386.6 MB, free: 2.758 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.1515, allocations: 245.6 kB / 386.8 MB, free: 2.469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1515, allocations: 0 / 386.8 MB, free: 2.469 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/0.1515, allocations: 4 kB / 386.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.217e-05/0.1516, allocations: 19.81 kB / 386.9 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.1516, allocations: 0 / 386.9 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/0.1521, allocations: 39.83 kB / 386.9 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/0.1523, allocations: 112.2 kB / 387 MB, free: 2.297 MB / 282.7 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.001022/0.1533, allocations: 0.6045 MB / 387.6 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.1535, allocations: 75.16 kB / 387.7 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003159/0.1539, allocations: 134.9 kB / 387.8 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1539, allocations: 0 / 387.8 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.1539, allocations: 3.953 kB / 387.8 MB, free: 1.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.1539, allocations: 3.984 kB / 387.8 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2632/0.4171, allocations: 1.416 MB / 389.2 MB, free: 20.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.355e-06/0.4172, allocations: 0 / 389.2 MB, free: 20.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.492e-05/0.4172, allocations: 10 kB / 389.3 MB, free: 20.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.4173, allocations: 1.891 kB / 389.3 MB, free: 20.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.4174, allocations: 29 kB / 389.3 MB, free: 20.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.4174, allocations: 4.391 kB / 389.3 MB, free: 20.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.656e-06/0.4174, allocations: 0 / 389.3 MB, free: 20.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.4196, allocations: 0.9542 MB / 390.2 MB, free: 20.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.4208, allocations: 418.9 kB / 390.7 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.421, allocations: 22.69 kB / 390.7 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004579/0.4214, allocations: 31.53 kB / 390.7 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002624/0.4217, allocations: 60.22 kB / 390.8 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001966/0.4219, allocations: 111.2 kB / 390.9 MB, free: 20.45 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001629/0.4236, allocations: 0.6912 MB / 391.6 MB, free: 20.23 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4236, allocations: 5.078 kB / 391.6 MB, free: 20.23 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006602/0.4243, allocations: 91.66 kB / 391.7 MB, free: 20.23 MB / 282.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: 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.002401/0.4267, allocations: 1.551 MB / 393.2 MB, free: 19.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.4282, allocations: 0.8838 MB / 394.1 MB, free: 18.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4282, allocations: 0 / 394.1 MB, free: 18.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008957/0.4291, allocations: 0.7516 MB / 394.8 MB, free: 17.92 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.4307, allocations: 230.3 kB / 395.1 MB, free: 17.87 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007223/0.438, allocations: 3.287 MB / 398.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008317/0.4388, allocations: 0.9562 MB / 399.3 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.4391, allocations: 97.59 kB / 399.4 MB, free: 15.05 MB / 282.7 MB Notification: Performance of SimCode: time 1.723e-06/0.4391, allocations: 0 / 399.4 MB, free: 15.05 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.759/3.198, allocations: 6.179 MB / 405.6 MB, free: 13.34 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat