Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier.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.Polyphase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009668/0.0009669, allocations: 96.47 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 205.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002146/0.0002146, allocations: 4 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1049, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.Rectifier): time 0.00613/0.1111, allocations: 5.087 MB / 363.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003588/0.1148, allocations: 1.644 MB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000664/0.1154, allocations: 35.88 kB / 365 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000464/0.1159, allocations: 242.6 kB / 365.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.1169, allocations: 374.8 kB / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005426/0.1175, allocations: 211.8 kB / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.119, allocations: 1.353 MB / 367.1 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.1209, allocations: 1.645 MB / 368.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009816/0.1218, allocations: 0.6967 MB / 369.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001078/0.1229, allocations: 0.8479 MB / 370.3 MB, free: 1.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.1231, allocations: 120 kB / 370.4 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004893/0.1236, allocations: 231.8 kB / 370.7 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004277/0.1241, allocations: 486.4 kB / 371.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004226/0.1245, allocations: 432.6 kB / 371.6 MB, free: 336 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1982/0.3227, allocations: 2.885 MB / 374.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3227, allocations: 0 / 374.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.3227, allocations: 0 / 374.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001307/0.3229, allocations: 0.75 kB / 374.4 MB, free: 11.75 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.005264/0.3281, allocations: 2.114 MB / 376.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.3282, allocations: 10.8 kB / 376.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006742/0.3289, allocations: 301.2 kB / 376.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008455/0.3297, allocations: 265.7 kB / 377.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.3323, allocations: 1.211 MB / 378.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.3324, allocations: 155.6 kB / 378.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003071/0.3327, allocations: 206.8 kB / 378.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004866/0.3376, allocations: 2.596 MB / 381.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/0.3377, allocations: 3.469 kB / 381.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001761/0.3378, allocations: 81.81 kB / 381.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.28e-05/0.3379, allocations: 50.73 kB / 381.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004293/0.3422, allocations: 2.081 MB / 383.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0127/0.3549, allocations: 7.436 MB / 390.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.3571, allocations: 2.358 MB / 393.3 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.176e-05/0.3571, allocations: 11.33 kB / 393.3 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.3572, allocations: 44.28 kB / 393.3 MB, free: 3.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 3.707e-06/0.3572, allocations: 1.375 kB / 393.3 MB, free: 3.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=97): time 0.007859/0.365, allocations: 4.352 MB / 397.7 MB, free: 1.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.3651, allocations: 61.97 kB / 397.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.3663, allocations: 0.853 MB / 398.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.3664, allocations: 42 kB / 398.6 MB, free: 460 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000556/0.3669, allocations: 0.8325 MB / 399.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002658/0.3672, allocations: 328.1 kB / 399.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/0.3673, allocations: 23.53 kB / 399.8 MB, free: 15.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3674, allocations: 344.3 kB / 400.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007384/0.3682, allocations: 498.6 kB / 400.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008352/0.369, allocations: 0.67 MB / 401.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008751/0.3699, allocations: 0.5726 MB / 401.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3699, allocations: 3.906 kB / 401.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002773/0.3727, allocations: 1.624 MB / 403.5 MB, free: 13.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.3728, allocations: 15.98 kB / 403.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/0.3728, allocations: 7.984 kB / 403.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.3739, allocations: 466 kB / 404 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006719/0.3746, allocations: 183 kB / 404.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008834/0.3834, allocations: 8.591 MB / 412.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009577/0.3844, allocations: 43.97 kB / 412.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.231e-05/0.3845, allocations: 43.34 kB / 412.9 MB, free: 3.387 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.001481/0.386, allocations: 0.6267 MB / 413.5 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002912/0.3863, allocations: 106.8 kB / 413.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.3866, allocations: 138 kB / 413.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-05/0.3867, allocations: 15.98 kB / 413.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.3867, allocations: 0 / 413.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.3867, allocations: 3.984 kB / 413.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006208/0.3929, allocations: 3.503 MB / 417.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.393, allocations: 7.984 kB / 417.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005754/0.3935, allocations: 123.3 kB / 417.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/0.3946, allocations: 458.4 kB / 417.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-05/0.3946, allocations: 21.2 kB / 417.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008519/0.4032, allocations: 8.525 MB / 426.4 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4032, allocations: 3.562 kB / 426.4 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003725/0.4069, allocations: 2.344 MB / 428.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007187/0.4077, allocations: 279.8 kB / 429 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.4078, allocations: 19.95 kB / 429 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004635/0.4083, allocations: 52.66 kB / 429.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.4086, allocations: 80.97 kB / 429.1 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-05/0.4086, allocations: 31.98 kB / 429.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001078/0.4097, allocations: 0.5966 MB / 429.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4097, allocations: 0 / 429.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001863/0.4116, allocations: 381.2 kB / 430.1 MB, free: 1.527 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.004127/0.4157, allocations: 3.077 MB / 433.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.4186, allocations: 1.82 MB / 435 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4187, allocations: 0 / 435 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001739/0.4204, allocations: 1.257 MB / 436.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.4219, allocations: 265.8 kB / 436.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01895/0.4409, allocations: 12.62 MB / 449.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001757/0.4427, allocations: 1.749 MB / 450.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007323/0.4434, allocations: 200.8 kB / 451.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007532/0.4442, allocations: 0.6125 MB / 451.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4442, allocations: 0 / 451.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0592/0.5034, allocations: 30.49 MB / 482.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.5037, allocations: 213.9 kB / 482.4 MB, free: 13.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.065, allocations: 0 / 482.4 MB, free: 13.12 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Polyphase_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Polyphase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Polyphase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat