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.001455/0.001455, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.12/2.12, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 89.95 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.931e-05/2.931e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3483, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1356/0.484, allocations: 82.05 MB / 444.5 MB, free: 4.152 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.4844, allocations: 72.81 kB / 444.5 MB, free: 4.082 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2297/0.714, allocations: 42.9 MB / 487.4 MB, free: 9.344 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.7141, allocations: 0 / 487.4 MB, free: 9.344 MB / 379.1 MB Notification: Performance of Transformations before backend: time 4.58e-05/0.7142, allocations: 11.94 kB / 487.5 MB, free: 9.332 MB / 379.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.002234/0.7164, allocations: 0.9513 MB / 488.4 MB, free: 8.281 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.592e-05/0.7165, allocations: 12.03 kB / 488.4 MB, free: 8.27 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004228/0.717, allocations: 71.16 kB / 488.5 MB, free: 8.199 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.7183, allocations: 364 kB / 488.8 MB, free: 7.805 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.936e-05/0.7184, allocations: 12 kB / 488.9 MB, free: 7.793 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.7186, allocations: 20 kB / 488.9 MB, free: 7.773 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006884/0.7193, allocations: 142.7 kB / 489 MB, free: 7.633 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.7204, allocations: 275 kB / 489.3 MB, free: 7.359 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.7205, allocations: 0 / 489.3 MB, free: 7.359 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.7206, allocations: 15.94 kB / 489.3 MB, free: 7.344 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.7207, allocations: 0 / 489.3 MB, free: 7.344 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003197/0.7239, allocations: 0.7317 MB / 490 MB, free: 6.574 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008793/0.7248, allocations: 198.5 kB / 490.2 MB, free: 6.371 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006511/0.7255, allocations: 176.8 kB / 490.4 MB, free: 6.195 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.7256, allocations: 0 / 490.4 MB, free: 6.195 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.7268, allocations: 421.9 kB / 490.8 MB, free: 5.746 MB / 379.1 MB Notification: Performance of pre-optimization done (n=29): time 6.182e-06/0.7268, allocations: 0 / 490.8 MB, free: 5.746 MB / 379.1 MB Notification: Performance of matching and sorting (n=29): time 0.002811/0.7296, allocations: 0.6126 MB / 491.4 MB, free: 5.129 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002831/0.73, allocations: 281 kB / 491.7 MB, free: 4.793 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00301/0.733, allocations: 0.7961 MB / 492.5 MB, free: 3.992 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002606/0.7333, allocations: 33.7 kB / 492.5 MB, free: 3.953 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.7336, allocations: 184.4 kB / 492.7 MB, free: 3.77 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.7338, allocations: 67.2 kB / 492.8 MB, free: 3.703 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.901e-05/0.734, allocations: 8 kB / 492.8 MB, free: 3.695 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.7342, allocations: 322.8 kB / 493.1 MB, free: 3.371 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005984/0.7348, allocations: 132.2 kB / 493.2 MB, free: 3.242 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006139/0.7355, allocations: 154.2 kB / 493.4 MB, free: 3.086 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005146/0.736, allocations: 115.8 kB / 493.5 MB, free: 2.973 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.736, allocations: 0 / 493.5 MB, free: 2.973 MB / 379.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.002465/0.7385, allocations: 0.5597 MB / 494 MB, free: 2.406 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003298/0.7389, allocations: 249.6 kB / 494.3 MB, free: 2.113 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.7389, allocations: 0.9375 kB / 494.3 MB, free: 2.113 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.971e-05/0.739, allocations: 4 kB / 494.3 MB, free: 2.109 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.488e-05/0.7391, allocations: 4 kB / 494.3 MB, free: 2.105 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.7391, allocations: 0 / 494.3 MB, free: 2.105 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008068/0.7399, allocations: 31.97 kB / 494.3 MB, free: 2.074 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006851/0.7406, allocations: 267.8 kB / 494.6 MB, free: 1.812 MB / 379.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,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,$PRE.bUF3S1.inertialDelaySensitive.y,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 () * 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.0007775/0.7415, allocations: 391.7 kB / 495 MB, free: 1.371 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002888/0.7444, allocations: 0.6529 MB / 495.6 MB, free: 0.7109 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003035/0.7447, allocations: 75.16 kB / 495.7 MB, free: 0.6367 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006578/0.7454, allocations: 135.3 kB / 495.8 MB, free: 0.5039 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.7455, allocations: 2.625 kB / 495.8 MB, free: 0.5039 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.7455, allocations: 0 / 495.8 MB, free: 0.5039 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.7455, allocations: 3.938 kB / 495.8 MB, free: 0.5 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004651/0.7502, allocations: 1.189 MB / 497 MB, free: 15.27 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.7503, allocations: 8 kB / 497 MB, free: 15.26 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.479e-05/0.7503, allocations: 7.984 kB / 497 MB, free: 15.25 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.055e-05/0.7504, allocations: 0 / 497 MB, free: 15.25 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001826/0.7506, allocations: 43.97 kB / 497.1 MB, free: 15.21 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.7506, allocations: 0 / 497.1 MB, free: 15.21 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.7506, allocations: 0 / 497.1 MB, free: 15.21 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.7537, allocations: 0.7678 MB / 497.9 MB, free: 14.42 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00201/0.7558, allocations: 431.8 kB / 498.3 MB, free: 13.98 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003174/0.7562, allocations: 16 kB / 498.3 MB, free: 13.96 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008542/0.7571, allocations: 31.97 kB / 498.3 MB, free: 13.93 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005069/0.7576, allocations: 75.91 kB / 498.4 MB, free: 13.86 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007118/0.7584, allocations: 263.6 kB / 498.7 MB, free: 13.6 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002737/0.7612, allocations: 0.647 MB / 499.3 MB, free: 12.96 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.794e-06/0.7612, allocations: 0 / 499.3 MB, free: 12.96 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001172/0.7624, allocations: 84 kB / 499.4 MB, free: 12.88 MB / 395.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]) * 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.003832/0.7663, allocations: 1.346 MB / 0.489 GB, free: 11.5 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002415/0.7688, allocations: 0.8741 MB / 0.4898 GB, free: 10.53 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-05/0.7689, allocations: 4 kB / 0.4899 GB, free: 10.53 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.7705, allocations: 0.7452 MB / 0.4906 GB, free: 9.684 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/0.7735, allocations: 227.8 kB / 0.4908 GB, free: 9.465 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005612/0.7792, allocations: 1.249 MB / 0.492 GB, free: 8.164 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009745/0.7802, allocations: 0.9635 MB / 0.493 GB, free: 7.172 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.7806, allocations: 103.3 kB / 0.4931 GB, free: 7.07 MB / 395.1 MB Notification: Performance of SimCode: time 1.172e-06/0.7806, allocations: 0 / 0.4931 GB, free: 7.07 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.198/3.978, allocations: 8.904 MB / 0.5018 GB, free: 113.3 MB / 395.1 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