Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0012/0.0012, allocations: 94.2 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001769/0.001769, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003849, allocations: 11.98 kB / 306.8 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.129, allocations: 51.48 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004837/0.1338, allocations: 4.505 MB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007978/0.1418, allocations: 6.043 MB / 368.9 MB, free: 3.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006587/0.1425, allocations: 35.75 kB / 368.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.1439, allocations: 402.8 kB / 369.3 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.1461, allocations: 0.6405 MB / 369.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.1473, allocations: 311 kB / 370.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003175/0.1505, allocations: 1.922 MB / 372.1 MB, free: 88 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2152/0.3657, allocations: 149.8 kB / 372.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009122/0.3667, allocations: 315.2 kB / 372.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.3671, allocations: 310.5 kB / 372.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.63e-05/0.3672, allocations: 17.09 kB / 372.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.3688, allocations: 453.3 kB / 373.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.3689, allocations: 88.84 kB / 373.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.3692, allocations: 217.2 kB / 373.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001349/0.3705, allocations: 0.926 MB / 374.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3705, allocations: 0.5625 kB / 374.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3706, allocations: 3.188 kB / 374.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.3706, allocations: 1.344 kB / 374.6 MB, free: 9.785 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.001994/0.3726, allocations: 1.306 MB / 375.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.3726, allocations: 13 kB / 375.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.227e-05/0.3727, allocations: 61.55 kB / 376 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003013/0.373, allocations: 141 kB / 376.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.3742, allocations: 0.8008 MB / 376.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.3743, allocations: 17 kB / 376.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.686e-05/0.3743, allocations: 22.12 kB / 376.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006023/0.3749, allocations: 306.6 kB / 377.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3749, allocations: 1.375 kB / 377.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.375, allocations: 9 kB / 377.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.375, allocations: 9.031 kB / 377.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004267/0.3754, allocations: 228.3 kB / 377.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.3773, allocations: 1.129 MB / 378.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/0.3777, allocations: 247.7 kB / 378.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004986/0.3782, allocations: 305.8 kB / 379.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009272/0.3791, allocations: 0.8399 MB / 380 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3792, allocations: 38.23 kB / 380 MB, free: 7.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.355e-06/0.3792, allocations: 0 / 380 MB, free: 7.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002867/0.3821, allocations: 1.577 MB / 381.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.3821, allocations: 111.2 kB / 381.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.3833, allocations: 0.916 MB / 382.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.3834, allocations: 35.86 kB / 382.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.3837, allocations: 359.2 kB / 383 MB, free: 6.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.587e-05/0.3838, allocations: 130.5 kB / 383.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.206e-05/0.3838, allocations: 8.625 kB / 383.2 MB, free: 5.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.337e-05/0.3839, allocations: 320.6 kB / 383.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002594/0.3842, allocations: 121.9 kB / 383.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/0.3844, allocations: 167.2 kB / 383.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.3847, allocations: 182.9 kB / 383.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3847, allocations: 1.156 kB / 383.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009085/0.3857, allocations: 0.553 MB / 384.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.3857, allocations: 39.34 kB / 384.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-05/0.3857, allocations: 18.81 kB / 384.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.386, allocations: 66.69 kB / 384.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.3862, allocations: 52.73 kB / 384.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/0.3881, allocations: 2.986 MB / 387.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/0.3886, allocations: 16.45 kB / 387.7 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.202e-05/0.3887, allocations: 21.31 kB / 387.7 MB, free: 2.703 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 (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.0005317/0.3892, allocations: 257.4 kB / 387.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.3894, allocations: 126.6 kB / 388.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.3909, allocations: 0.6761 MB / 388.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3909, allocations: 3.156 kB / 388.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3909, allocations: 1.156 kB / 388.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.3909, allocations: 2.938 kB / 388.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.392, allocations: 0.6164 MB / 389.4 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.658e-05/0.3921, allocations: 16.56 kB / 389.4 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.3922, allocations: 35.69 kB / 389.4 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000193/0.3924, allocations: 71.56 kB / 389.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.3925, allocations: 14.16 kB / 389.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.3943, allocations: 2.997 MB / 392.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3943, allocations: 3.938 kB / 392.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.3956, allocations: 0.8723 MB / 393.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004355/0.3961, allocations: 266.4 kB / 393.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.3962, allocations: 18.06 kB / 393.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002641/0.3964, allocations: 12.47 kB / 393.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.3966, allocations: 43.27 kB / 393.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.981e-05/0.3966, allocations: 17.11 kB / 393.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008409/0.3975, allocations: 0.6153 MB / 394.3 MB, free: 14.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3975, allocations: 0 / 394.3 MB, free: 14.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009901/0.3985, allocations: 226 kB / 394.6 MB, free: 14.88 MB / 318.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 (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.002103/0.4006, allocations: 1.605 MB / 396.2 MB, free: 14.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.4017, allocations: 0.778 MB / 396.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4018, allocations: 1.031 kB / 396.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006914/0.4025, allocations: 0.6208 MB / 397.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007286/0.4032, allocations: 117.4 kB / 397.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007987/0.4112, allocations: 4.708 MB / 402.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/0.4118, allocations: 1.004 MB / 403.4 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003476/0.4121, allocations: 88.83 kB / 403.5 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002964/0.4124, allocations: 285.6 kB / 403.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4124, allocations: 6.344 kB / 403.8 MB, free: 9.715 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.4458, allocations: 16.07 MB / 419.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.446, allocations: 195.7 kB / 420 MB, free: 11.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.155/2.601, allocations: 4 kB / 420 MB, free: 11.39 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)