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.00504/0.00504, allocations: 98.23 kB / 15.73 MB, free: 6.004 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.377/1.377, allocations: 222.9 MB / 239.4 MB, free: 4.574 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.001485/0.001485, allocations: 196.4 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03562/0.03562, allocations: 8.802 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002613/0.002613, allocations: 75.88 kB / 463.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1049, allocations: 51.56 MB / 0.5029 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.005706/0.1107, allocations: 4.51 MB / 0.5073 GB, free: 5.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1128, allocations: 1.145 MB / 0.5084 GB, free: 4.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/0.113, allocations: 23.88 kB / 0.5084 GB, free: 4.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.1134, allocations: 174.6 kB / 0.5086 GB, free: 4.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008567/0.1142, allocations: 350 kB / 0.5089 GB, free: 3.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002934/0.1145, allocations: 171.8 kB / 0.5091 GB, free: 3.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.1163, allocations: 1.65 MB / 0.5107 GB, free: 1.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.1176, allocations: 1.15 MB / 0.5118 GB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008062/0.1184, allocations: 0.7087 MB / 0.5125 GB, free: 96 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001062/0.1195, allocations: 0.8445 MB / 0.5134 GB, free: 15.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002286/0.1197, allocations: 180 kB / 0.5135 GB, free: 15.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.12, allocations: 184 kB / 0.5137 GB, free: 14.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000474/0.1205, allocations: 0.4987 MB / 0.5142 GB, free: 14.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008402/0.1214, allocations: 0.8051 MB / 0.515 GB, free: 13.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002097/0.1235, allocations: 2.351 MB / 0.5173 GB, free: 11.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1235, allocations: 0 / 0.5173 GB, free: 11.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1235, allocations: 3.938 kB / 0.5173 GB, free: 11.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.1235, allocations: 0 / 0.5173 GB, free: 11.22 MB / 366.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.003173/0.1267, allocations: 1.846 MB / 0.5191 GB, free: 9.316 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1267, allocations: 12.03 kB / 0.5191 GB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002296/0.127, allocations: 181.4 kB / 0.5193 GB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002407/0.1272, allocations: 156 kB / 0.5194 GB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.1286, allocations: 0.9783 MB / 0.5204 GB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.902e-05/0.1287, allocations: 82.61 kB / 0.5205 GB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.1289, allocations: 115.9 kB / 0.5206 GB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002655/0.1315, allocations: 1.689 MB / 0.5222 GB, free: 6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.1316, allocations: 3.938 kB / 0.5222 GB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.1317, allocations: 44 kB / 0.5223 GB, free: 5.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.978e-05/0.1318, allocations: 50.23 kB / 0.5223 GB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002552/0.1343, allocations: 1.558 MB / 0.5238 GB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1793/0.3136, allocations: 4.953 MB / 0.5287 GB, free: 22.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.3156, allocations: 2.57 MB / 0.5312 GB, free: 20.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.3166, allocations: 0.8506 MB / 0.532 GB, free: 20.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.3167, allocations: 10.52 kB / 0.532 GB, free: 20.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.3167, allocations: 46.12 kB / 0.5321 GB, free: 20.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.986e-06/0.3167, allocations: 1.125 kB / 0.5321 GB, free: 20.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.007312/0.3241, allocations: 4.089 MB / 0.5361 GB, free: 20.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.3241, allocations: 61.34 kB / 0.5361 GB, free: 20.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.3253, allocations: 0.8837 MB / 0.537 GB, free: 19.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/0.3253, allocations: 45.02 kB / 0.537 GB, free: 19.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.3256, allocations: 0.507 MB / 0.5375 GB, free: 19.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.3259, allocations: 327.4 kB / 0.5378 GB, free: 19.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/0.3261, allocations: 148.4 kB / 0.538 GB, free: 19.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.3262, allocations: 339.5 kB / 0.5383 GB, free: 19.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007492/0.327, allocations: 0.4893 MB / 0.5388 GB, free: 19.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007788/0.3277, allocations: 0.5719 MB / 0.5393 GB, free: 19.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.3292, allocations: 1.063 MB / 0.5404 GB, free: 19.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3293, allocations: 1.281 kB / 0.5404 GB, free: 19.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.0025/0.3318, allocations: 1.572 MB / 0.5419 GB, free: 19.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3318, allocations: 7.547 kB / 0.5419 GB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3318, allocations: 2.375 kB / 0.5419 GB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.3329, allocations: 493 kB / 0.5424 GB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005638/0.3335, allocations: 139.7 kB / 0.5425 GB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007767/0.3413, allocations: 9.598 MB / 0.5519 GB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007154/0.342, allocations: 45.72 kB / 0.5519 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.646e-05/0.3421, allocations: 26.5 kB / 0.552 GB, free: 11.6 MB / 366.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.0007721/0.3429, allocations: 0.5058 MB / 0.5525 GB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.343, allocations: 103.4 kB / 0.5525 GB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002265/0.3433, allocations: 130.8 kB / 0.5527 GB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.3433, allocations: 9.812 kB / 0.5527 GB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/0.3433, allocations: 2.375 kB / 0.5527 GB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.3433, allocations: 6.188 kB / 0.5527 GB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004543/0.3479, allocations: 3.162 MB / 0.5558 GB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.3479, allocations: 0 / 0.5558 GB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005181/0.3484, allocations: 121.7 kB / 0.5559 GB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000939/0.3494, allocations: 495.8 kB / 0.5564 GB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.3494, allocations: 24.23 kB / 0.5564 GB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006545/0.356, allocations: 9.528 MB / 0.5657 GB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.356, allocations: 1.438 kB / 0.5657 GB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/0.3591, allocations: 2.354 MB / 0.568 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004836/0.3596, allocations: 299.7 kB / 0.5683 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.3597, allocations: 18.22 kB / 0.5683 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/0.3602, allocations: 65.98 kB / 0.5684 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.3605, allocations: 82.72 kB / 0.5684 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.345e-05/0.3605, allocations: 24.81 kB / 0.5685 GB, free: 15.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007741/0.3613, allocations: 0.6306 MB / 0.5691 GB, free: 15.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3613, allocations: 1.375 kB / 0.5691 GB, free: 15.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001172/0.3625, allocations: 305.9 kB / 0.5694 GB, free: 15.22 MB / 382.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.003527/0.366, allocations: 2.925 MB / 0.5722 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002754/0.3688, allocations: 1.798 MB / 0.574 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3688, allocations: 0 / 0.574 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.3706, allocations: 1.264 MB / 0.5752 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.3717, allocations: 294 kB / 0.5755 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01624/0.388, allocations: 11.19 MB / 0.5864 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/0.3892, allocations: 1.411 MB / 0.5878 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.3897, allocations: 192 kB / 0.588 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005625/0.3903, allocations: 419.3 kB / 0.5884 GB, free: 12.69 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3903, allocations: 0 / 0.5884 GB, free: 12.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07278/0.4631, allocations: 31.38 MB / 0.619 GB, free: 13.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.53, allocations: 4.844 kB / 0.619 GB, free: 13.59 MB / 430.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)