Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 221.5 MB / 230.3 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009527/0.0009527, allocations: 94.83 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.557e-05/1.559e-05, allocations: 0 / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.111, allocations: 50.41 MB / 387.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3602/0.4713, allocations: 87.64 MB / 475.2 MB, free: 7.074 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.4715, allocations: 71.97 kB / 475.3 MB, free: 7.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09217/0.5637, allocations: 37.5 MB / 0.5007 GB, free: 1.426 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5637, allocations: 0 / 0.5007 GB, free: 1.426 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.184e-05/0.5638, allocations: 16 kB / 0.5008 GB, free: 1.41 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001845/0.5656, allocations: 1.198 MB / 0.5019 GB, free: 164 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.5657, allocations: 8.031 kB / 0.5019 GB, free: 156 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.5658, allocations: 126.4 kB / 0.5021 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.567, allocations: 0.7111 MB / 0.5028 GB, free: 15.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.567, allocations: 8 kB / 0.5028 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.162e-05/0.5671, allocations: 12 kB / 0.5028 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004287/0.5675, allocations: 200.9 kB / 0.503 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.568, allocations: 269.8 kB / 0.5032 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.5681, allocations: 4 kB / 0.5032 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.5681, allocations: 0 / 0.5032 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.5681, allocations: 4 kB / 0.5032 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.5702, allocations: 1.128 MB / 0.5043 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.5706, allocations: 222.5 kB / 0.5045 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004672/0.5711, allocations: 280.7 kB / 0.5048 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001725/0.5728, allocations: 1.27 MB / 0.5061 GB, free: 11.56 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.5728, allocations: 42.56 kB / 0.5061 GB, free: 11.51 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.978e-06/0.5728, allocations: 0 / 0.5061 GB, free: 11.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=39): time 0.002503/0.5754, allocations: 1.167 MB / 0.5072 GB, free: 10.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.5754, allocations: 114.8 kB / 0.5073 GB, free: 10.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008256/0.5763, allocations: 0.7089 MB / 0.508 GB, free: 9.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.5763, allocations: 29.7 kB / 0.5081 GB, free: 9.395 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003046/0.5766, allocations: 353.6 kB / 0.5084 GB, free: 9.047 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.5767, allocations: 130 kB / 0.5085 GB, free: 8.918 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.145e-05/0.5768, allocations: 0 / 0.5085 GB, free: 8.918 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.5769, allocations: 322 kB / 0.5088 GB, free: 8.598 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.577, allocations: 96.27 kB / 0.5089 GB, free: 8.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.5772, allocations: 142.8 kB / 0.5091 GB, free: 8.352 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.5775, allocations: 139.8 kB / 0.5092 GB, free: 8.215 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.5775, allocations: 0 / 0.5092 GB, free: 8.215 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007896/0.5783, allocations: 469.8 kB / 0.5096 GB, free: 7.742 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.103e-05/0.5784, allocations: 42.78 kB / 0.5097 GB, free: 7.695 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-05/0.5784, allocations: 15.98 kB / 0.5097 GB, free: 7.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002175/0.5787, allocations: 69.69 kB / 0.5098 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.5789, allocations: 35.98 kB / 0.5098 GB, free: 7.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.5811, allocations: 2.898 MB / 0.5126 GB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.5814, allocations: 15.97 kB / 0.5126 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-05/0.5814, allocations: 24.06 kB / 0.5127 GB, free: 4.398 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.5816, allocations: 138.6 kB / 0.5128 GB, free: 4.25 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008357/0.5824, allocations: 0.4976 MB / 0.5133 GB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.5826, allocations: 118.5 kB / 0.5134 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.5839, allocations: 0.6014 MB / 0.514 GB, free: 3.004 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.5839, allocations: 7.938 kB / 0.514 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.5839, allocations: 3.984 kB / 0.514 GB, free: 2.992 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.5839, allocations: 0 / 0.514 GB, free: 2.992 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006628/0.5846, allocations: 0.5639 MB / 0.5145 GB, free: 2.395 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.097e-05/0.5846, allocations: 12 kB / 0.5146 GB, free: 2.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.5848, allocations: 35.97 kB / 0.5146 GB, free: 2.348 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/0.585, allocations: 69.67 kB / 0.5147 GB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.585, allocations: 8 kB / 0.5147 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.587, allocations: 2.898 MB / 0.5175 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.587, allocations: 4 kB / 0.5175 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.5881, allocations: 0.7635 MB / 0.5182 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003143/0.5884, allocations: 287.5 kB / 0.5185 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.398e-05/0.5885, allocations: 4 kB / 0.5185 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002619/0.5888, allocations: 7.984 kB / 0.5185 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.705e-05/0.5889, allocations: 31.92 kB / 0.5186 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/0.589, allocations: 19.98 kB / 0.5186 GB, free: 13.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006156/0.5896, allocations: 0.5477 MB / 0.5191 GB, free: 13.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5896, allocations: 64 / 0.5191 GB, free: 13.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008689/0.5905, allocations: 235.8 kB / 0.5193 GB, free: 13.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D3.n.v,D2.pin) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00201/0.5925, allocations: 1.628 MB / 0.5209 GB, free: 11.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008728/0.5934, allocations: 0.6929 MB / 0.5216 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5934, allocations: 0 / 0.5216 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005557/0.5939, allocations: 0.5795 MB / 0.5222 GB, free: 10.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.5944, allocations: 92.78 kB / 0.5223 GB, free: 10.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.5965, allocations: 1.238 MB / 0.5235 GB, free: 8.777 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005381/0.5971, allocations: 1.019 MB / 0.5245 GB, free: 7.734 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002621/0.5973, allocations: 64.58 kB / 0.5245 GB, free: 7.668 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.5976, allocations: 275.3 kB / 0.5248 GB, free: 7.398 MB / 410.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5976, allocations: 3.938 kB / 0.5248 GB, free: 7.395 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0372/0.6348, allocations: 14.56 MB / 0.539 GB, free: 8.891 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.6351, allocations: 129 kB / 0.5391 GB, free: 8.699 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.394/3.029, allocations: 0 / 0.5391 GB, free: 8.699 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)