Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_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.00116/0.00116, allocations: 109.5 kB / 17.73 MB, free: 5.363 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.001192/0.001192, allocations: 192 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 51.94 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.08953, allocations: 46.63 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.1858/0.2754, allocations: 5.198 MB / 379.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007002/0.2824, allocations: 6.577 MB / 386.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006774/0.2831, allocations: 44.62 kB / 386.4 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001718/0.2849, allocations: 497.3 kB / 386.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002553/0.2875, allocations: 0.8135 MB / 387.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.2888, allocations: 431 kB / 388.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002866/0.2917, allocations: 1.984 MB / 390.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002805/0.292, allocations: 174.5 kB / 390.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004859/0.2925, allocations: 362.1 kB / 390.7 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005128/0.293, allocations: 339.2 kB / 391 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.2931, allocations: 29.41 kB / 391 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.2944, allocations: 466.7 kB / 391.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.2945, allocations: 111.8 kB / 391.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.2949, allocations: 442.3 kB / 392 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001429/0.2963, allocations: 1.277 MB / 393.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2963, allocations: 5.344 kB / 393.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2963, allocations: 0 / 393.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.2963, allocations: 0 / 393.3 MB, free: 3.723 MB / 318.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.001673/0.298, allocations: 1.438 MB / 394.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2981, allocations: 9.688 kB / 394.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.752e-05/0.2981, allocations: 69.48 kB / 394.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.2983, allocations: 127.6 kB / 395 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.2993, allocations: 0.8519 MB / 395.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.2993, allocations: 13.22 kB / 395.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.2994, allocations: 29.22 kB / 395.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005241/0.2999, allocations: 313 kB / 396.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.3, allocations: 0 / 396.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.164e-05/0.3, allocations: 14.5 kB / 396.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.3, allocations: 5.969 kB / 396.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003951/0.3004, allocations: 219.7 kB / 396.4 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.3022, allocations: 1.121 MB / 397.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004144/0.3026, allocations: 239.9 kB / 397.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004893/0.3031, allocations: 293.9 kB / 398 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007992/0.3039, allocations: 0.753 MB / 398.8 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.3039, allocations: 37.11 kB / 398.8 MB, free: 44 kB / 318.1 MB Notification: Performance of pre-optimization done (n=38): time 1.583e-06/0.3039, allocations: 0 / 398.8 MB, free: 44 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.002855/0.3068, allocations: 1.552 MB / 400.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.3069, allocations: 113.5 kB / 400.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.308, allocations: 0.9355 MB / 401.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.3081, allocations: 31.08 kB / 401.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/0.3084, allocations: 362.9 kB / 401.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.3085, allocations: 125.2 kB / 401.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.3087, allocations: 114.7 kB / 402 MB, free: 14.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3088, allocations: 325.3 kB / 402.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.3091, allocations: 122.5 kB / 402.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002659/0.3093, allocations: 163.7 kB / 402.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.3107, allocations: 0.7376 MB / 403.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3107, allocations: 1.156 kB / 403.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008837/0.3116, allocations: 0.5539 MB / 403.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.3116, allocations: 39.03 kB / 404 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.124e-05/0.3117, allocations: 17.81 kB / 404 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/0.3119, allocations: 74.41 kB / 404.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.3121, allocations: 41.03 kB / 404.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/0.3146, allocations: 3.33 MB / 407.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.3149, allocations: 20.72 kB / 407.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.967e-05/0.315, allocations: 17.16 kB / 407.5 MB, free: 9.633 MB / 334.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.0004027/0.3154, allocations: 272.5 kB / 407.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.3155, allocations: 120.9 kB / 407.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.3168, allocations: 0.6623 MB / 408.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.3168, allocations: 3.906 kB / 408.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3168, allocations: 2.25 kB / 408.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3169, allocations: 1.969 kB / 408.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007866/0.3176, allocations: 0.6152 MB / 409.1 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/0.3177, allocations: 21.34 kB / 409.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.3179, allocations: 34.77 kB / 409.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.3181, allocations: 67.72 kB / 409.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.3181, allocations: 15.91 kB / 409.3 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/0.3204, allocations: 3.341 MB / 412.6 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3204, allocations: 1.156 kB / 412.6 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.3217, allocations: 0.8527 MB / 413.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.3221, allocations: 269.6 kB / 413.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3222, allocations: 14.91 kB / 413.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002641/0.3225, allocations: 13.36 kB / 413.8 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.375e-05/0.3226, allocations: 33.38 kB / 413.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.026e-05/0.3226, allocations: 12.16 kB / 413.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007631/0.3234, allocations: 0.632 MB / 414.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3234, allocations: 0 / 414.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008738/0.3243, allocations: 219.4 kB / 414.6 MB, free: 4.094 MB / 334.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.001987/0.3263, allocations: 1.609 MB / 416.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.3274, allocations: 0.7825 MB / 417 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3274, allocations: 0 / 417 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006355/0.328, allocations: 0.6197 MB / 417.7 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005625/0.3286, allocations: 102 kB / 417.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007001/0.3356, allocations: 5.727 MB / 423.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/0.3361, allocations: 1.004 MB / 424.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002606/0.3364, allocations: 89.64 kB / 424.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000292/0.3367, allocations: 291.3 kB / 424.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3367, allocations: 0 / 424.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04674/0.3835, allocations: 17.53 MB / 442.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.28, allocations: 8.859 kB / 442.4 MB, free: 10.3 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)