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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0009598/0.0009599, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.293/1.293, allocations: 223.2 MB / 238.9 MB, free: 5.414 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.001059/0.001059, allocations: 189 kB / 290.2 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03229/0.03229, allocations: 8.777 MB / 350 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003719, allocations: 10.16 kB / 413.2 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09344/0.09384, allocations: 52.56 MB / 465.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.004009/0.09788, allocations: 3.652 MB / 469.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.09966, allocations: 1.15 MB / 470.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.09991, allocations: 23.88 kB / 470.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.1002, allocations: 131.2 kB / 470.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006896/0.1009, allocations: 307 kB / 471 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.1011, allocations: 107.9 kB / 471.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009976/0.1021, allocations: 0.9978 MB / 472.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008652/0.103, allocations: 0.7667 MB / 472.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004701/0.1034, allocations: 486.3 kB / 473.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006485/0.1041, allocations: 0.5914 MB / 473.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.1042, allocations: 72 kB / 474 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.1044, allocations: 76 kB / 474.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003026/0.1047, allocations: 355 kB / 474.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.1049, allocations: 301 kB / 474.7 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.1063, allocations: 1.851 MB / 476.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.1063, allocations: 0 / 476.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1063, allocations: 8 kB / 476.6 MB, free: 2.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.1064, allocations: 0 / 476.6 MB, free: 2.547 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002587/0.1089, allocations: 1.582 MB / 478.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.109, allocations: 8.031 kB / 478.1 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002194/0.1092, allocations: 177.2 kB / 478.3 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.1094, allocations: 158.1 kB / 478.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.1109, allocations: 0.9185 MB / 479.4 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.101e-05/0.1109, allocations: 86.23 kB / 479.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.1111, allocations: 111.9 kB / 479.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.1136, allocations: 1.677 MB / 481.3 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.1136, allocations: 3.938 kB / 481.3 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.1137, allocations: 48 kB / 481.3 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.326e-05/0.1138, allocations: 50.19 kB / 481.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/0.1161, allocations: 1.57 MB / 482.9 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006936/0.1231, allocations: 5.033 MB / 488 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.1255, allocations: 2.592 MB / 490.6 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-05/0.1256, allocations: 9 kB / 490.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.1256, allocations: 43.56 kB / 490.6 MB, free: 3.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.635e-06/0.1256, allocations: 0 / 490.6 MB, free: 3.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=93): time 0.007255/0.1329, allocations: 4.12 MB / 494.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.1329, allocations: 68.34 kB / 494.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.134, allocations: 0.8676 MB / 495.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.347e-05/0.134, allocations: 41.7 kB / 495.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000335/0.1344, allocations: 0.5038 MB / 496.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.1346, allocations: 307.4 kB / 496.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.1346, allocations: 16 kB / 496.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1348, allocations: 345.9 kB / 496.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007769/0.1356, allocations: 0.4977 MB / 497.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000807/0.1364, allocations: 0.5723 MB / 497.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008406/0.1372, allocations: 0.5573 MB / 498.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1372, allocations: 0 / 498.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00244/0.1397, allocations: 1.585 MB / 0.4884 GB, free: 10.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1397, allocations: 4 kB / 0.4884 GB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.1397, allocations: 0 / 0.4884 GB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.1407, allocations: 491 kB / 0.4888 GB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005584/0.1413, allocations: 143.8 kB / 0.489 GB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008717/0.15, allocations: 8.886 MB / 0.4976 GB, free: 212 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006503/0.1507, allocations: 51.95 kB / 0.4977 GB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-05/0.1508, allocations: 20 kB / 0.4977 GB, free: 140 kB / 334.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_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 initialization (70): * Single equations (assignments): 66 * 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: 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.0007909/0.1516, allocations: 0.4976 MB / 0.4982 GB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.1517, allocations: 98.83 kB / 0.4983 GB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002341/0.152, allocations: 133.3 kB / 0.4984 GB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.152, allocations: 8 kB / 0.4984 GB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.152, allocations: 0 / 0.4984 GB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.152, allocations: 3.984 kB / 0.4984 GB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004931/0.1569, allocations: 3.216 MB / 0.5016 GB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.157, allocations: 0 / 0.5016 GB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/0.1576, allocations: 123.8 kB / 0.5017 GB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000982/0.1586, allocations: 483.2 kB / 0.5021 GB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.789e-05/0.1586, allocations: 23.98 kB / 0.5022 GB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008624/0.1673, allocations: 8.807 MB / 0.5108 GB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1673, allocations: 0 / 0.5108 GB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/0.1714, allocations: 2.393 MB / 0.5131 GB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006414/0.1721, allocations: 291.9 kB / 0.5134 GB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.1722, allocations: 20 kB / 0.5134 GB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.1727, allocations: 71.92 kB / 0.5135 GB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.1729, allocations: 80.88 kB / 0.5135 GB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.174e-05/0.173, allocations: 24 kB / 0.5136 GB, free: 15.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008332/0.1738, allocations: 0.6317 MB / 0.5142 GB, free: 14.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1739, allocations: 0 / 0.5142 GB, free: 14.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001158/0.175, allocations: 308 kB / 0.5145 GB, free: 14.24 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 (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.003813/0.1788, allocations: 3.112 MB / 0.5175 GB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002691/0.1815, allocations: 1.792 MB / 0.5193 GB, free: 9.242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1816, allocations: 0 / 0.5193 GB, free: 9.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.1833, allocations: 1.266 MB / 0.5205 GB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.1844, allocations: 263.2 kB / 0.5208 GB, free: 7.668 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.193/0.3774, allocations: 8.665 MB / 0.5292 GB, free: 66.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009135/0.3784, allocations: 1.438 MB / 0.5306 GB, free: 65.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006724/0.3791, allocations: 187.8 kB / 0.5308 GB, free: 65.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004679/0.3796, allocations: 408 kB / 0.5312 GB, free: 65.92 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3796, allocations: 0 / 0.5312 GB, free: 65.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04825/0.4278, allocations: 28.46 MB / 0.559 GB, free: 50.92 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.428, allocations: 195.2 kB / 0.5592 GB, free: 50.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/2.625, allocations: 0 / 0.5592 GB, free: 50.68 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/linux/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) Environment - environmentSimulation: