Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_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.001066/0.001066, allocations: 178.5 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.3 MB / 214.4 MB, free: 1.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 94.2 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.115e-05/2.122e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1019, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3357/0.4377, allocations: 82.27 MB / 445.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.438, allocations: 67.03 kB / 445.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08008/0.5181, allocations: 42.88 MB / 488.4 MB, free: 8.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5182, allocations: 0 / 488.4 MB, free: 8.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.5182, allocations: 15.88 kB / 488.4 MB, free: 8.484 MB / 362.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.0009758/0.5192, allocations: 0.9552 MB / 489.4 MB, free: 7.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.5192, allocations: 12.03 kB / 489.4 MB, free: 7.418 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.5194, allocations: 75.16 kB / 489.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.5198, allocations: 368 kB / 489.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.5199, allocations: 8 kB / 489.8 MB, free: 6.938 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.5199, allocations: 19.98 kB / 489.8 MB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002766/0.5202, allocations: 140.3 kB / 490 MB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.5207, allocations: 271 kB / 490.2 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.5207, allocations: 0 / 490.2 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.5207, allocations: 19.94 kB / 490.3 MB, free: 6.488 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.5207, allocations: 4 kB / 490.3 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.522, allocations: 0.72 MB / 491 MB, free: 5.727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.5223, allocations: 202.5 kB / 491.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.5226, allocations: 180.8 kB / 491.4 MB, free: 5.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.5226, allocations: 3.938 kB / 491.4 MB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004848/0.5231, allocations: 423 kB / 491.8 MB, free: 4.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.5231, allocations: 0 / 491.8 MB, free: 4.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009621/0.5241, allocations: 0.6103 MB / 492.4 MB, free: 4.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.5242, allocations: 285 kB / 492.7 MB, free: 3.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009916/0.5252, allocations: 0.7961 MB / 493.5 MB, free: 3.129 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.147e-05/0.5253, allocations: 33.7 kB / 493.5 MB, free: 3.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.313e-05/0.5254, allocations: 130 kB / 493.6 MB, free: 2.957 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-05/0.5255, allocations: 67.2 kB / 493.7 MB, free: 2.891 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.5255, allocations: 4 kB / 493.7 MB, free: 2.887 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.5257, allocations: 338.8 kB / 494 MB, free: 2.547 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.5259, allocations: 128.2 kB / 494.1 MB, free: 2.422 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.5261, allocations: 158.2 kB / 494.3 MB, free: 2.262 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.5263, allocations: 115.9 kB / 494.4 MB, free: 2.148 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5263, allocations: 0 / 494.4 MB, free: 2.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008594/0.5272, allocations: 0.5713 MB / 495 MB, free: 1.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.5273, allocations: 237.6 kB / 495.2 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.5273, allocations: 0 / 495.2 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.5274, allocations: 0 / 495.2 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.366e-05/0.5274, allocations: 7.984 kB / 495.2 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.5274, allocations: 4 kB / 495.2 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.5277, allocations: 35.92 kB / 495.3 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/0.528, allocations: 263.8 kB / 495.5 MB, free: 0.9844 MB / 362.7 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.0003154/0.5283, allocations: 383.7 kB / 495.9 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009472/0.5292, allocations: 0.6646 MB / 496.6 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.735e-05/0.5294, allocations: 79.06 kB / 496.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.5296, allocations: 131.3 kB / 496.8 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.5296, allocations: 11.94 kB / 496.8 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.5296, allocations: 7.938 kB / 496.8 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.5296, allocations: 0 / 496.8 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.5311, allocations: 1.186 MB / 498 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.5311, allocations: 0 / 498 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.55e-05/0.5312, allocations: 4 kB / 498 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.5312, allocations: 0 / 498 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.5313, allocations: 47.97 kB / 498 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5313, allocations: 0 / 498 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.5313, allocations: 4 kB / 498 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009477/0.5322, allocations: 0.7562 MB / 498.8 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005657/0.5328, allocations: 435.7 kB / 499.2 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.5329, allocations: 20 kB / 499.2 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.5332, allocations: 23.98 kB / 499.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.5334, allocations: 71.91 kB / 499.3 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/0.5336, allocations: 267.6 kB / 499.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007756/0.5344, allocations: 0.6509 MB / 0.4885 GB, free: 12.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5344, allocations: 0 / 0.4885 GB, free: 12.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003931/0.5348, allocations: 88 kB / 0.4886 GB, free: 12.04 MB / 378.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]) * 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.001347/0.5361, allocations: 1.339 MB / 0.4899 GB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009486/0.5371, allocations: 0.8663 MB / 0.4907 GB, free: 9.711 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5371, allocations: 3.938 kB / 0.4907 GB, free: 9.707 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006496/0.5378, allocations: 0.753 MB / 0.4915 GB, free: 8.855 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.5389, allocations: 234.8 kB / 0.4917 GB, free: 8.625 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.5413, allocations: 1.185 MB / 0.4929 GB, free: 7.395 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007221/0.542, allocations: 0.9557 MB / 0.4938 GB, free: 6.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002735/0.5423, allocations: 93.06 kB / 0.4939 GB, free: 6.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.5424, allocations: 87.34 kB / 0.494 GB, free: 6.234 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5425, allocations: 0 / 0.494 GB, free: 6.234 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03357/0.576, allocations: 13.55 MB / 0.5072 GB, free: 8.492 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.5763, allocations: 129.2 kB / 0.5073 GB, free: 8.301 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.404, allocations: 0 / 0.5073 GB, free: 8.301 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat