Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.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 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.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_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.001056/0.001056, allocations: 96.77 kB / 16.94 MB, free: 5.984 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.0009572/0.0009573, allocations: 176.9 kB / 17.82 MB, free: 5.652 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.415/1.415, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004659/0.0004659, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1253, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.006029/0.1313, allocations: 5.072 MB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004517/0.1359, allocations: 2.058 MB / 335.6 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008438/0.1368, allocations: 23.88 kB / 335.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007384/0.1376, allocations: 202.8 kB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001939/0.1395, allocations: 0.7203 MB / 336.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009562/0.1405, allocations: 375 kB / 336.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.1417, allocations: 0.7763 MB / 337.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.1433, allocations: 0.9258 MB / 338.6 MB, free: 9.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005441/0.1438, allocations: 362.5 kB / 338.9 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005538/0.1444, allocations: 454 kB / 339.4 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.007e-05/0.1445, allocations: 48 kB / 339.4 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005025/0.145, allocations: 183.8 kB / 339.6 MB, free: 8.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.1451, allocations: 167.3 kB / 339.7 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.1453, allocations: 217.1 kB / 340 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.1464, allocations: 1.063 MB / 341 MB, free: 7.301 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1464, allocations: 0 / 341 MB, free: 7.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1464, allocations: 4 kB / 341 MB, free: 7.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.1464, allocations: 0 / 341 MB, free: 7.297 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002649/0.1491, allocations: 1.28 MB / 342.3 MB, free: 5.961 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.1491, allocations: 8.031 kB / 342.3 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002279/0.1494, allocations: 162.5 kB / 342.5 MB, free: 5.785 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002821/0.1522, allocations: 486.2 kB / 343 MB, free: 5.309 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009521/0.1532, allocations: 0.5529 MB / 343.5 MB, free: 4.715 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.934e-05/0.1532, allocations: 78.05 kB / 343.6 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.1534, allocations: 107.9 kB / 343.7 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.1553, allocations: 1.052 MB / 344.7 MB, free: 3.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.1553, allocations: 3.938 kB / 344.7 MB, free: 3.426 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.871e-05/0.1554, allocations: 44 kB / 344.8 MB, free: 3.383 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.1555, allocations: 28 kB / 344.8 MB, free: 3.355 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.1572, allocations: 0.9331 MB / 345.7 MB, free: 2.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005642/0.1628, allocations: 3.777 MB / 349.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/0.1655, allocations: 2.498 MB / 352 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.1656, allocations: 97.73 kB / 352.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008528/0.1665, allocations: 0.4969 MB / 352.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.006e-06/0.1665, allocations: 4 kB / 352.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004297/0.1708, allocations: 1.681 MB / 354.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.171, allocations: 192.9 kB / 354.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005984/0.1716, allocations: 470 kB / 354.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.618e-05/0.1716, allocations: 49.7 kB / 355 MB, free: 8.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003459/0.172, allocations: 427.4 kB / 355.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.1722, allocations: 280 kB / 355.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.194e-05/0.1723, allocations: 20 kB / 355.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.1725, allocations: 374.8 kB / 356.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005337/0.173, allocations: 285.9 kB / 356.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006901/0.1737, allocations: 0.5239 MB / 356.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006218/0.1743, allocations: 347 kB / 357.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1744, allocations: 7.938 kB / 357.2 MB, free: 6.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00197/0.1763, allocations: 1.088 MB / 358.3 MB, free: 5.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.1764, allocations: 8 kB / 358.3 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.979e-05/0.1764, allocations: 15.98 kB / 358.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008841/0.1773, allocations: 271.6 kB / 358.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005857/0.1779, allocations: 163.7 kB / 358.8 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005427/0.1833, allocations: 4.478 MB / 363.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007985/0.1842, allocations: 119 kB / 363.3 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.893e-05/0.1842, allocations: 36 kB / 363.4 MB, free: 15.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004983/0.1848, allocations: 257.6 kB / 363.6 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1849, allocations: 67.25 kB / 363.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/0.1869, allocations: 0.9792 MB / 364.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.1869, allocations: 12 kB / 364.7 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.1869, allocations: 0 / 364.7 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.1869, allocations: 11.97 kB / 364.7 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/0.1901, allocations: 1.95 MB / 366.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.1901, allocations: 0 / 366.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004461/0.1905, allocations: 107.8 kB / 366.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007662/0.1913, allocations: 273.9 kB / 367 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.1914, allocations: 20 kB / 367 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005549/0.1969, allocations: 4.431 MB / 371.5 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.197, allocations: 8.094 kB / 371.5 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.1997, allocations: 1.415 MB / 372.9 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003192/0.2001, allocations: 220.2 kB / 373.1 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.62e-05/0.2002, allocations: 24 kB / 373.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/0.2006, allocations: 47.97 kB / 373.2 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.2008, allocations: 72.83 kB / 373.3 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.2009, allocations: 27.98 kB / 373.3 MB, free: 5.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004209/0.2013, allocations: 318.9 kB / 373.6 MB, free: 5.043 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2013, allocations: 4 kB / 373.6 MB, free: 5.039 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001253/0.2026, allocations: 311.1 kB / 373.9 MB, free: 4.734 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.003054/0.2056, allocations: 2.095 MB / 376 MB, free: 2.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.2078, allocations: 1.12 MB / 377.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.2078, allocations: 0 / 377.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.209, allocations: 0.7435 MB / 377.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006355/0.2097, allocations: 106 kB / 378 MB, free: 0.582 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1697/0.3794, allocations: 6.987 MB / 385 MB, free: 45.66 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007202/0.3802, allocations: 1.017 MB / 386 MB, free: 44.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004691/0.3807, allocations: 87.83 kB / 386.1 MB, free: 44.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004317/0.3811, allocations: 331.1 kB / 386.4 MB, free: 44.94 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3811, allocations: 0.5 kB / 386.4 MB, free: 44.94 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03574/0.4169, allocations: 17.27 MB / 403.6 MB, free: 37.97 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/0.4171, allocations: 227.7 kB / 403.9 MB, free: 37.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.285/2.702, allocations: 0 / 403.9 MB, free: 37.73 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat