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.008662/0.008662, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.464/1.464, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001751/0.001751, allocations: 188.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03568/0.03568, allocations: 8.799 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 75.89 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0918/0.09333, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.005781/0.09917, allocations: 4.504 MB / 0.5073 GB, free: 5.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.1016, allocations: 1.149 MB / 0.5084 GB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005758/0.1022, allocations: 27.88 kB / 0.5084 GB, free: 4.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005065/0.1028, allocations: 166.6 kB / 0.5086 GB, free: 4.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.1039, allocations: 358 kB / 0.5089 GB, free: 3.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.1044, allocations: 167.8 kB / 0.5091 GB, free: 3.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001857/0.1062, allocations: 1.662 MB / 0.5107 GB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001481/0.1077, allocations: 1.146 MB / 0.5118 GB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009733/0.1087, allocations: 0.701 MB / 0.5125 GB, free: 84 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.11, allocations: 0.8563 MB / 0.5134 GB, free: 15.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003473/0.1104, allocations: 180 kB / 0.5135 GB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004641/0.1109, allocations: 188 kB / 0.5137 GB, free: 14.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005814/0.1115, allocations: 0.4909 MB / 0.5142 GB, free: 14.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001308/0.1128, allocations: 0.8129 MB / 0.515 GB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002185/0.115, allocations: 2.341 MB / 0.5173 GB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.115, allocations: 4 kB / 0.5173 GB, free: 11.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.115, allocations: 0 / 0.5173 GB, free: 11.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.024e-05/0.1151, allocations: 0 / 0.5173 GB, free: 11.2 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.0038/0.1189, allocations: 1.8 MB / 0.519 GB, free: 9.348 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1189, allocations: 15.97 kB / 0.5191 GB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002817/0.1192, allocations: 177.4 kB / 0.5192 GB, free: 9.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/0.1195, allocations: 155.2 kB / 0.5194 GB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.1209, allocations: 0.9737 MB / 0.5203 GB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.592e-05/0.121, allocations: 82.61 kB / 0.5204 GB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.1211, allocations: 119.8 kB / 0.5205 GB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.1236, allocations: 1.681 MB / 0.5222 GB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.1237, allocations: 7.938 kB / 0.5222 GB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.1238, allocations: 44 kB / 0.5222 GB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.386e-05/0.1239, allocations: 50.22 kB / 0.5223 GB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00245/0.1263, allocations: 1.558 MB / 0.5238 GB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1933/0.3196, allocations: 4.944 MB / 0.5286 GB, free: 22.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/0.3217, allocations: 2.573 MB / 0.5311 GB, free: 21.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.3228, allocations: 0.8469 MB / 0.5319 GB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.225e-05/0.3228, allocations: 7.688 kB / 0.532 GB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.3229, allocations: 45.58 kB / 0.532 GB, free: 21.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.875e-06/0.3229, allocations: 0 / 0.532 GB, free: 21.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.007418/0.3303, allocations: 4.07 MB / 0.536 GB, free: 20.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.3304, allocations: 65.75 kB / 0.536 GB, free: 20.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.3316, allocations: 0.8746 MB / 0.5369 GB, free: 20.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.186e-05/0.3317, allocations: 40.27 kB / 0.5369 GB, free: 20.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.332, allocations: 0.506 MB / 0.5374 GB, free: 20.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.3323, allocations: 309.7 kB / 0.5377 GB, free: 19.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.3326, allocations: 148.5 kB / 0.5379 GB, free: 19.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3327, allocations: 344.6 kB / 0.5382 GB, free: 19.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009606/0.3337, allocations: 0.4923 MB / 0.5387 GB, free: 19.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.3347, allocations: 0.5685 MB / 0.5392 GB, free: 19.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.3365, allocations: 1.06 MB / 0.5403 GB, free: 19.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3365, allocations: 0 / 0.5403 GB, free: 19.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002589/0.3391, allocations: 1.565 MB / 0.5418 GB, free: 19.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3391, allocations: 5.625 kB / 0.5418 GB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3391, allocations: 3.375 kB / 0.5418 GB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.3403, allocations: 498.8 kB / 0.5423 GB, free: 19.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005719/0.3409, allocations: 132.9 kB / 0.5424 GB, free: 19.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007907/0.3488, allocations: 9.593 MB / 0.5518 GB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006637/0.3495, allocations: 47.03 kB / 0.5518 GB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/0.3496, allocations: 24.53 kB / 0.5518 GB, free: 12.02 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.0007471/0.3503, allocations: 0.5086 MB / 0.5523 GB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.3505, allocations: 98.45 kB / 0.5524 GB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.3507, allocations: 129.3 kB / 0.5525 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3507, allocations: 9 kB / 0.5526 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-05/0.3507, allocations: 6.234 kB / 0.5526 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3507, allocations: 4.984 kB / 0.5526 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004685/0.3554, allocations: 3.161 MB / 0.5557 GB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.3555, allocations: 1.344 kB / 0.5557 GB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005173/0.356, allocations: 125.2 kB / 0.5558 GB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009323/0.3569, allocations: 480.5 kB / 0.5562 GB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.353e-05/0.357, allocations: 25.84 kB / 0.5563 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006689/0.3637, allocations: 9.525 MB / 0.5656 GB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3637, allocations: 5.5 kB / 0.5656 GB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.3668, allocations: 2.34 MB / 0.5678 GB, free: 384 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004481/0.3673, allocations: 290.8 kB / 0.5681 GB, free: 156 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3674, allocations: 19.78 kB / 0.5681 GB, free: 144 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004973/0.3679, allocations: 67.3 kB / 0.5682 GB, free: 108 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.3681, allocations: 88.19 kB / 0.5683 GB, free: 52 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-05/0.3682, allocations: 24 kB / 0.5683 GB, free: 44 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008368/0.369, allocations: 0.6388 MB / 0.5689 GB, free: 15.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.369, allocations: 0 / 0.5689 GB, free: 15.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001319/0.3703, allocations: 303.4 kB / 0.5692 GB, free: 15.66 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.003568/0.3739, allocations: 2.927 MB / 0.5721 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002714/0.3766, allocations: 1.793 MB / 0.5738 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3767, allocations: 0 / 0.5738 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.3784, allocations: 1.249 MB / 0.5751 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.3797, allocations: 286.5 kB / 0.5753 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0173/0.397, allocations: 11.15 MB / 0.5862 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.3981, allocations: 1.419 MB / 0.5876 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005352/0.3987, allocations: 188.7 kB / 0.5878 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006643/0.3994, allocations: 411.3 kB / 0.5882 GB, free: 13.23 MB / 398.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3994, allocations: 0 / 0.5882 GB, free: 13.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07112/0.4705, allocations: 31.82 MB / 0.6193 GB, free: 13.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/13.93, allocations: 0 / 0.6193 GB, free: 13.71 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)