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.0009963/0.0009966, allocations: 88.16 kB / 16.31 MB, free: 5.617 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.001033/0.001033, allocations: 177.9 kB / 17.2 MB, free: 5.535 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.334/1.334, allocations: 223.3 MB / 241.2 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.000288, allocations: 4 kB / 300.9 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1116, allocations: 50.42 MB / 351.3 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004227/0.1158, allocations: 4.496 MB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007543/0.1234, allocations: 5.992 MB / 361.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007264/0.1242, allocations: 39.69 kB / 361.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001321/0.1255, allocations: 398.8 kB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002262/0.1278, allocations: 0.6367 MB / 362.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1288, allocations: 307 kB / 363.2 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003011/0.1318, allocations: 1.88 MB / 365.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003053/0.1322, allocations: 146.5 kB / 365.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004514/0.1326, allocations: 314.3 kB / 365.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003303/0.133, allocations: 306 kB / 365.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.133, allocations: 16 kB / 365.8 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.1341, allocations: 443.5 kB / 366.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.724e-05/0.1342, allocations: 87.33 kB / 366.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.1343, allocations: 217.1 kB / 366.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008762/0.1352, allocations: 0.9076 MB / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1352, allocations: 0 / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1352, allocations: 0 / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1353, allocations: 0 / 367.5 MB, free: 3.441 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.001654/0.1369, allocations: 1.305 MB / 368.8 MB, free: 2.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.137, allocations: 11.97 kB / 368.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.2e-05/0.1371, allocations: 58.55 kB / 368.8 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.1372, allocations: 126.4 kB / 369 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.1383, allocations: 0.8008 MB / 369.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.1383, allocations: 16.44 kB / 369.8 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.584e-05/0.1384, allocations: 35.89 kB / 369.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005456/0.1389, allocations: 302.7 kB / 370.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1389, allocations: 3.938 kB / 370.1 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.139, allocations: 8 kB / 370.1 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.139, allocations: 4 kB / 370.1 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003895/0.1394, allocations: 237.7 kB / 370.4 MB, free: 432 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1822/0.3216, allocations: 1.123 MB / 371.5 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.3221, allocations: 241.3 kB / 371.7 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.3225, allocations: 302.7 kB / 372 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007976/0.3234, allocations: 0.7569 MB / 372.8 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.3234, allocations: 34.12 kB / 372.8 MB, free: 23.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 3.056e-06/0.3234, allocations: 0 / 372.8 MB, free: 23.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003094/0.3265, allocations: 1.578 MB / 374.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.3266, allocations: 110.5 kB / 374.5 MB, free: 22.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.3276, allocations: 0.9237 MB / 375.4 MB, free: 22.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.3277, allocations: 31.67 kB / 375.5 MB, free: 22.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.3279, allocations: 361.9 kB / 375.8 MB, free: 22.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.388e-05/0.328, allocations: 128.8 kB / 375.9 MB, free: 21.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.328, allocations: 5.438 kB / 375.9 MB, free: 21.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.3281, allocations: 326 kB / 376.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.3283, allocations: 126.6 kB / 376.4 MB, free: 21.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.3286, allocations: 165.6 kB / 376.5 MB, free: 21.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.3289, allocations: 182.8 kB / 376.7 MB, free: 21.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3289, allocations: 1.375 kB / 376.7 MB, free: 21.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008241/0.3297, allocations: 0.5586 MB / 377.3 MB, free: 21.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.3297, allocations: 41.42 kB / 377.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.018e-05/0.3298, allocations: 11.56 kB / 377.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002167/0.33, allocations: 71.36 kB / 377.4 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.3302, allocations: 50.69 kB / 377.5 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.332, allocations: 2.989 MB / 380.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.3323, allocations: 14.41 kB / 380.5 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.794e-05/0.3324, allocations: 20.12 kB / 380.5 MB, free: 18.18 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.0003731/0.3327, allocations: 261.2 kB / 380.7 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.3329, allocations: 121.1 kB / 380.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.3342, allocations: 0.6838 MB / 381.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.3342, allocations: 4.281 kB / 381.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3342, allocations: 1.828 kB / 381.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3342, allocations: 1.172 kB / 381.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007885/0.335, allocations: 0.6161 MB / 382.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.323e-05/0.335, allocations: 12.5 kB / 382.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.3352, allocations: 36.11 kB / 382.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001779/0.3354, allocations: 84.36 kB / 382.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.3355, allocations: 15.05 kB / 382.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001673/0.3371, allocations: 2.985 MB / 385.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3371, allocations: 4.562 kB / 385.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.3383, allocations: 0.8562 MB / 386.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003135/0.3386, allocations: 275.7 kB / 386.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.448e-05/0.3387, allocations: 7.969 kB / 386.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.339, allocations: 12.81 kB / 386.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.802e-05/0.3391, allocations: 33.62 kB / 386.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.945e-05/0.3391, allocations: 25.55 kB / 386.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007263/0.3399, allocations: 0.6142 MB / 387.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3399, allocations: 0 / 387.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008592/0.3407, allocations: 228.9 kB / 387.3 MB, free: 13.3 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 (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.001799/0.3425, allocations: 1.609 MB / 388.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.3436, allocations: 0.7875 MB / 389.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3436, allocations: 0 / 389.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005435/0.3441, allocations: 0.614 MB / 390.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005805/0.3447, allocations: 114.5 kB / 390.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006811/0.3516, allocations: 4.702 MB / 395.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.352, allocations: 1.003 MB / 396.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003449/0.3523, allocations: 89.86 kB / 396.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002722/0.3526, allocations: 282.8 kB / 396.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3526, allocations: 4 kB / 396.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/0.3829, allocations: 16.03 MB / 412.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.3831, allocations: 206.5 kB / 412.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.082/2.465, allocations: 3.938 kB / 412.8 MB, free: 10.42 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/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)