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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009161/0.0009161, allocations: 90.34 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 174.8 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.3 MB / 241.6 MB, free: 14.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.000275, allocations: 12 kB / 301.5 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1057, allocations: 50.41 MB / 351.9 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005148/0.1109, allocations: 4.792 MB / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009588/0.1205, allocations: 6.649 MB / 363.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.1217, allocations: 43.69 kB / 363.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002018/0.1238, allocations: 470.5 kB / 363.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003667/0.1275, allocations: 0.6678 MB / 364.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.1289, allocations: 331 kB / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003804/0.1327, allocations: 1.957 MB / 366.8 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004445/0.1332, allocations: 154.6 kB / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006593/0.1338, allocations: 330.2 kB / 367.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005837/0.1344, allocations: 333.6 kB / 367.6 MB, free: 3.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.1345, allocations: 16 kB / 367.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001314/0.1359, allocations: 475.5 kB / 368.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.136, allocations: 91.2 kB / 368.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005692/0.1366, allocations: 462.7 kB / 368.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.1385, allocations: 1.226 MB / 369.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1385, allocations: 0 / 369.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1385, allocations: 0 / 369.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.277e-05/0.1385, allocations: 0 / 369.9 MB, free: 1.355 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002292/0.1408, allocations: 1.285 MB / 371.2 MB, free: 12 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.1409, allocations: 8.031 kB / 371.2 MB, free: 4 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2163/0.3572, allocations: 57.19 kB / 371.2 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.3575, allocations: 132.5 kB / 371.3 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001373/0.3589, allocations: 0.8443 MB / 372.2 MB, free: 24.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.3589, allocations: 16.62 kB / 372.2 MB, free: 24.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.359, allocations: 25.97 kB / 372.2 MB, free: 24.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006208/0.3596, allocations: 307.4 kB / 372.5 MB, free: 23.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3596, allocations: 3.938 kB / 372.5 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.3597, allocations: 10.66 kB / 372.6 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.3597, allocations: 5.109 kB / 372.6 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.3601, allocations: 231.4 kB / 372.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.3619, allocations: 1.135 MB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.3623, allocations: 241.7 kB / 374.2 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004793/0.3628, allocations: 307.5 kB / 374.5 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008579/0.3637, allocations: 0.7547 MB / 375.2 MB, free: 22.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.3637, allocations: 36.11 kB / 375.2 MB, free: 22.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.913e-06/0.3637, allocations: 0 / 375.2 MB, free: 22.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003025/0.3668, allocations: 1.584 MB / 376.8 MB, free: 22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.3668, allocations: 113.7 kB / 376.9 MB, free: 21.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.3679, allocations: 0.9313 MB / 377.9 MB, free: 21.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.3679, allocations: 31.7 kB / 377.9 MB, free: 21.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.3682, allocations: 362.3 kB / 378.3 MB, free: 21.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.97e-05/0.3683, allocations: 128.3 kB / 378.4 MB, free: 21.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.759e-05/0.3683, allocations: 36.05 kB / 378.4 MB, free: 21.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.283e-05/0.3684, allocations: 322.7 kB / 378.7 MB, free: 20.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.3687, allocations: 127.7 kB / 378.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.3689, allocations: 167 kB / 379 MB, free: 20.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.3703, allocations: 0.743 MB / 379.8 MB, free: 20.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3703, allocations: 0 / 379.8 MB, free: 20.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009147/0.3713, allocations: 0.5671 MB / 380.3 MB, free: 19.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.511e-05/0.3713, allocations: 36.66 kB / 380.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.345e-05/0.3714, allocations: 16.83 kB / 380.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000218/0.3716, allocations: 71.41 kB / 380.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.3718, allocations: 46.98 kB / 380.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.3739, allocations: 2.997 MB / 383.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.3742, allocations: 17.98 kB / 383.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.674e-05/0.3743, allocations: 19.73 kB / 383.5 MB, free: 16.97 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003717/0.3746, allocations: 260.5 kB / 383.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.3748, allocations: 124.4 kB / 383.9 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.3761, allocations: 0.6716 MB / 384.6 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.3761, allocations: 8.234 kB / 384.6 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3761, allocations: 5.641 kB / 384.6 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3762, allocations: 1.5 kB / 384.6 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008906/0.377, allocations: 0.6095 MB / 385.2 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.656e-05/0.3771, allocations: 17.38 kB / 385.2 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.3773, allocations: 40.23 kB / 385.3 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.3775, allocations: 69.44 kB / 385.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.798e-05/0.3775, allocations: 17.95 kB / 385.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/0.3794, allocations: 2.997 MB / 388.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3794, allocations: 1.25 kB / 388.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.3809, allocations: 0.865 MB / 389.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004153/0.3813, allocations: 275.4 kB / 389.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.045e-05/0.3814, allocations: 12.28 kB / 389.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.3817, allocations: 13.31 kB / 389.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3819, allocations: 33.97 kB / 389.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.3819, allocations: 15.67 kB / 389.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.383, allocations: 0.6285 MB / 390.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.383, allocations: 0 / 390.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001279/0.3843, allocations: 224.6 kB / 390.4 MB, free: 12.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002212/0.3865, allocations: 1.618 MB / 392 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.3877, allocations: 0.7878 MB / 392.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3877, allocations: 1 kB / 392.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006311/0.3884, allocations: 0.626 MB / 393.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006279/0.389, allocations: 110.5 kB / 393.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009278/0.3983, allocations: 6.367 MB / 399.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/0.399, allocations: 1.004 MB / 400.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004384/0.3994, allocations: 90.02 kB / 401 MB, free: 5.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/0.3998, allocations: 281.8 kB / 401.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3998, allocations: 0 / 401.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.726/2.126, allocations: 16.44 MB / 417.7 MB, free: 5.695 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002742/2.126, allocations: 220 kB / 417.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.546/4.672, allocations: 0 / 417.9 MB, free: 5.438 MB / 318.1 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/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)