Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.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.Polyphase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_Rectifier",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.0008517/0.0008517, allocations: 91.66 kB / 16.31 MB, free: 5.543 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.001074/0.001074, allocations: 182.3 kB / 17.21 MB, free: 5.461 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.408/1.408, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002791, allocations: 8 kB / 300.9 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1174, allocations: 50.42 MB / 351.3 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.Rectifier): time 0.006639/0.1241, allocations: 5.381 MB / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00404/0.1282, allocations: 1.558 MB / 358.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009785/0.1292, allocations: 39.81 kB / 358.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005892/0.1298, allocations: 226.4 kB / 358.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.1312, allocations: 361.9 kB / 358.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.1319, allocations: 223.7 kB / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002752/0.1347, allocations: 2.11 MB / 361.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002458/0.1371, allocations: 1.633 MB / 362.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.1387, allocations: 0.716 MB / 363.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.1403, allocations: 0.9257 MB / 364.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002249/0.1406, allocations: 120 kB / 364.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006096/0.1412, allocations: 223.8 kB / 364.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005372/0.1417, allocations: 0.4945 MB / 365.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006793/0.1424, allocations: 432.6 kB / 365.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003281/0.1457, allocations: 2.887 MB / 368.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/0.1457, allocations: 0 / 368.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.939e-06/0.1458, allocations: 4 kB / 368.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001633/0.1459, allocations: 3.938 kB / 368.6 MB, free: 2.273 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: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.004776/0.1507, allocations: 2.113 MB / 370.8 MB, free: 100 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.1508, allocations: 8.031 kB / 370.8 MB, free: 92 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.233/0.3838, allocations: 301.9 kB / 371.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007366/0.3846, allocations: 230.9 kB / 371.3 MB, free: 22.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.3871, allocations: 1.209 MB / 372.5 MB, free: 22.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.3872, allocations: 154.8 kB / 372.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.3876, allocations: 200.3 kB / 372.8 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006484/0.3941, allocations: 2.607 MB / 375.4 MB, free: 21.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.52e-05/0.3942, allocations: 3.359 kB / 375.4 MB, free: 21.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001945/0.3944, allocations: 86.33 kB / 375.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.3945, allocations: 52.95 kB / 375.6 MB, free: 21.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004931/0.3994, allocations: 2.088 MB / 377.7 MB, free: 20.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.4128, allocations: 7.44 MB / 385.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.4149, allocations: 2.353 MB / 387.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/0.4165, allocations: 0.9374 MB / 388.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.4166, allocations: 10.78 kB / 388.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.4166, allocations: 46.03 kB / 388.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 4.248e-06/0.4166, allocations: 1.094 kB / 388.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=97): time 0.007284/0.4239, allocations: 4.208 MB / 392.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.424, allocations: 61.16 kB / 392.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.4251, allocations: 0.8518 MB / 393.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.514e-05/0.4252, allocations: 44.44 kB / 393.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004327/0.4256, allocations: 0.829 MB / 394.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/0.4258, allocations: 328.2 kB / 394.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.837e-05/0.4259, allocations: 21.3 kB / 394.8 MB, free: 9.855 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.426, allocations: 348.9 kB / 395.1 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007344/0.4267, allocations: 496.6 kB / 395.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007573/0.4275, allocations: 0.6752 MB / 396.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006915/0.4282, allocations: 0.5728 MB / 396.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4282, allocations: 0 / 396.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002095/0.4303, allocations: 1.617 MB / 398.5 MB, free: 7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.4303, allocations: 10.34 kB / 398.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.4304, allocations: 8 kB / 398.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009043/0.4313, allocations: 461.5 kB / 399 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005984/0.4319, allocations: 183.8 kB / 399.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007057/0.4389, allocations: 8.454 MB / 407.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006732/0.4396, allocations: 47.95 kB / 407.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.589e-05/0.4397, allocations: 36 kB / 407.7 MB, free: 13.28 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 82 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001158/0.4409, allocations: 0.6406 MB / 408.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.4411, allocations: 98.78 kB / 408.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003092/0.4414, allocations: 146 kB / 408.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/0.4415, allocations: 8 kB / 408.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.858e-05/0.4415, allocations: 4 kB / 408.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.4415, allocations: 3.984 kB / 408.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006083/0.4476, allocations: 3.521 MB / 412.1 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.4476, allocations: 0 / 412.1 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005528/0.4482, allocations: 127.9 kB / 412.2 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009665/0.4492, allocations: 454.9 kB / 412.7 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/0.4492, allocations: 29.41 kB / 412.7 MB, free: 8.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008728/0.458, allocations: 8.36 MB / 421 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.458, allocations: 4.062 kB / 421 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003726/0.4618, allocations: 2.31 MB / 423.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006165/0.4624, allocations: 283.8 kB / 423.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.4625, allocations: 18.84 kB / 423.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004213/0.463, allocations: 48.89 kB / 423.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.4632, allocations: 88.81 kB / 423.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.94e-05/0.4633, allocations: 24 kB / 423.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008923/0.4642, allocations: 0.5966 MB / 424.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4642, allocations: 4 kB / 424.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001655/0.4658, allocations: 388.2 kB / 424.8 MB, free: 11.49 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (supplyL.inductor[2].i,supplyL.inductor[3].i,cDC1.v,cDC2.v) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 56 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004107/0.47, allocations: 2.899 MB / 427.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003077/0.4731, allocations: 1.814 MB / 429.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4731, allocations: 5.031 kB / 429.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.4749, allocations: 1.233 MB / 430.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.4764, allocations: 285.8 kB / 431 MB, free: 5.125 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/0.4927, allocations: 9.565 MB / 440.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001642/0.4944, allocations: 1.714 MB / 442.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006846/0.4951, allocations: 188.9 kB / 442.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008263/0.4959, allocations: 0.6164 MB / 443.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.496, allocations: 0 / 443.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06162/0.5576, allocations: 30.6 MB / 473.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/0.5579, allocations: 218.7 kB / 473.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.499/3.057, allocations: 3.938 kB / 473.9 MB, free: 10.29 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat