Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Electrical.Rectifier,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Rectifier,fileNamePrefix="HanserModelica_HanserModelica_Electrical_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.0008612/0.0008613, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.34/1.34, allocations: 223.3 MB / 239.4 MB, free: 5.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000956/0.000956, allocations: 179.6 kB / 290.6 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03368/0.03368, allocations: 8.808 MB / 350.5 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003681, allocations: 10.61 kB / 413.9 MB, free: 42.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09435/0.09473, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.004617/0.09939, allocations: 4.102 MB / 470.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.1017, allocations: 1.133 MB / 471.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004112/0.1022, allocations: 19.94 kB / 471.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003428/0.1025, allocations: 147 kB / 471.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008882/0.1034, allocations: 322.4 kB / 472.2 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002968/0.1037, allocations: 155.8 kB / 472.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.1055, allocations: 1.903 MB / 474.3 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001157/0.1067, allocations: 0.9678 MB / 475.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007704/0.1075, allocations: 0.5134 MB / 475.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009357/0.1084, allocations: 0.7313 MB / 476.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.1085, allocations: 72 kB / 476.5 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.1087, allocations: 76 kB / 476.6 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003468/0.1091, allocations: 370.7 kB / 477 MB, free: 2.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007461/0.1098, allocations: 0.7052 MB / 477.7 MB, free: 1.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001958/0.1118, allocations: 2.172 MB / 479.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1118, allocations: 0 / 479.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1118, allocations: 0 / 479.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.285e-05/0.1118, allocations: 0 / 479.9 MB, free: 15.56 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002879/0.1147, allocations: 1.574 MB / 481.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.1148, allocations: 8.031 kB / 481.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002331/0.115, allocations: 181.4 kB / 481.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.1153, allocations: 155.1 kB / 481.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/0.1169, allocations: 0.9502 MB / 482.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-05/0.117, allocations: 82.61 kB / 482.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.1172, allocations: 111.9 kB / 482.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003087/0.1203, allocations: 1.708 MB / 484.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.1203, allocations: 0 / 484.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.1205, allocations: 52 kB / 484.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.323e-05/0.1205, allocations: 46.23 kB / 484.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/0.1233, allocations: 1.582 MB / 486.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00723/0.1306, allocations: 5.033 MB / 491.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002429/0.133, allocations: 2.59 MB / 493.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001159/0.1342, allocations: 0.8605 MB / 494.8 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.1342, allocations: 12.94 kB / 494.8 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.1343, allocations: 51.56 kB / 494.8 MB, free: 12 kB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.905e-06/0.1343, allocations: 0 / 494.8 MB, free: 12 kB / 318.1 MB Notification: Performance of matching and sorting (n=93): time 0.007922/0.1422, allocations: 4.144 MB / 499 MB, free: 11.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.1423, allocations: 64.41 kB / 499 MB, free: 11.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.1433, allocations: 0.8715 MB / 499.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.186e-05/0.1434, allocations: 45.7 kB / 500 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003463/0.1438, allocations: 0.4998 MB / 0.4887 GB, free: 10.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.144, allocations: 315.5 kB / 0.489 GB, free: 9.922 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1441, allocations: 77.67 kB / 0.4891 GB, free: 9.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1443, allocations: 341.9 kB / 0.4894 GB, free: 9.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008606/0.1451, allocations: 0.5016 MB / 0.4899 GB, free: 8.996 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008729/0.146, allocations: 0.584 MB / 0.4905 GB, free: 8.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.1477, allocations: 1.089 MB / 0.4916 GB, free: 7.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1477, allocations: 0 / 0.4916 GB, free: 7.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00247/0.1502, allocations: 1.585 MB / 0.4931 GB, free: 5.695 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1502, allocations: 8.031 kB / 0.4931 GB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.1502, allocations: 0 / 0.4931 GB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.1513, allocations: 491 kB / 0.4936 GB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005488/0.1519, allocations: 143.8 kB / 0.4937 GB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008217/0.1601, allocations: 8.752 MB / 0.5023 GB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.1606, allocations: 51.97 kB / 0.5023 GB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.295e-05/0.1607, allocations: 28 kB / 0.5023 GB, free: 11.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007243/0.1615, allocations: 0.5033 MB / 0.5028 GB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.1616, allocations: 102.9 kB / 0.5029 GB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002891/0.1619, allocations: 125.3 kB / 0.503 GB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.1619, allocations: 11.98 kB / 0.5031 GB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/0.162, allocations: 4 kB / 0.5031 GB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.162, allocations: 7.969 kB / 0.5031 GB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004941/0.1669, allocations: 3.22 MB / 0.5062 GB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1669, allocations: 0 / 0.5062 GB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/0.1675, allocations: 123.8 kB / 0.5063 GB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.1685, allocations: 487 kB / 0.5068 GB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.267e-05/0.1685, allocations: 20 kB / 0.5068 GB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00833/0.1769, allocations: 8.686 MB / 0.5153 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.1769, allocations: 4.031 kB / 0.5153 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003702/0.1806, allocations: 2.37 MB / 0.5176 GB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005183/0.1812, allocations: 295.9 kB / 0.5179 GB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/0.1813, allocations: 19.98 kB / 0.5179 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005708/0.1819, allocations: 67.94 kB / 0.518 GB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.1822, allocations: 92.8 kB / 0.5181 GB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-05/0.1822, allocations: 24 kB / 0.5181 GB, free: 10.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009198/0.1831, allocations: 0.6278 MB / 0.5187 GB, free: 10.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1832, allocations: 0 / 0.5187 GB, free: 10.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001261/0.1844, allocations: 312 kB / 0.519 GB, free: 9.926 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inductor.inductor[2].i,inductor.inductor[3].i,capacitor1.v,capacitor2.v) * Number of discrete variables: 6 (rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003948/0.1884, allocations: 2.955 MB / 0.5219 GB, free: 6.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.1913, allocations: 1.799 MB / 0.5236 GB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1913, allocations: 0 / 0.5236 GB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.1931, allocations: 1.273 MB / 0.5249 GB, free: 3.746 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.1946, allocations: 268.8 kB / 0.5251 GB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1928/0.3874, allocations: 12.29 MB / 0.5371 GB, free: 66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.3885, allocations: 1.414 MB / 0.5385 GB, free: 65.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005938/0.3891, allocations: 188.6 kB / 0.5387 GB, free: 65.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005056/0.3896, allocations: 407.5 kB / 0.5391 GB, free: 65.27 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3896, allocations: 0.875 kB / 0.5391 GB, free: 65.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04774/0.4374, allocations: 29.11 MB / 0.5675 GB, free: 45.65 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001587/0.4376, allocations: 221.8 kB / 0.5677 GB, free: 45.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/2.779, allocations: 3.938 kB / 0.5677 GB, free: 45.38 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.Rectifier.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Rectifier.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Rectifier.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Rectifier_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Rectifier.fmu > HanserModelica_HanserModelica.Electrical.Rectifier.pipe 2>&1)