Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.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.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",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.0009174/0.0009173, allocations: 98.53 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.322/1.322, allocations: 223.2 MB / 238.9 MB, free: 5.484 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.0009973/0.0009976, allocations: 189 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03232/0.03232, allocations: 8.781 MB / 350 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003856, allocations: 8.75 kB / 413.2 MB, free: 42.9 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1015, allocations: 52.57 MB / 465.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01575/0.1173, allocations: 15.12 MB / 480.8 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.1283, allocations: 4.765 MB / 485.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003263/0.1316, allocations: 131.6 kB / 485.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003675/0.1353, allocations: 0.9909 MB / 486.7 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006162/0.1415, allocations: 1.777 MB / 488.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003671/0.1451, allocations: 1.238 MB / 489.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01304/0.1582, allocations: 8.5 MB / 498.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03748/0.1957, allocations: 20.72 MB / 0.5068 GB, free: 8.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006433/0.2022, allocations: 3.98 MB / 0.5107 GB, free: 4.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007008/0.2092, allocations: 4.389 MB / 0.515 GB, free: 15.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002044/0.2113, allocations: 0.6602 MB / 0.5156 GB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003392/0.2147, allocations: 0.8903 MB / 0.5165 GB, free: 14.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00232/0.2171, allocations: 1.986 MB / 0.5184 GB, free: 12.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003273/0.2203, allocations: 2.122 MB / 0.5205 GB, free: 9.945 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2199/0.4403, allocations: 18.43 MB / 0.5385 GB, free: 26.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4403, allocations: 0 / 0.5385 GB, free: 26.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.4404, allocations: 0 / 0.5385 GB, free: 26.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007313/0.4411, allocations: 0 / 0.5385 GB, free: 26.17 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: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.03704/0.4781, allocations: 11.51 MB / 0.5497 GB, free: 20.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/0.4782, allocations: 11.19 kB / 0.5497 GB, free: 20.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007373/0.4856, allocations: 1.568 MB / 0.5513 GB, free: 20.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04295/0.5286, allocations: 7.919 MB / 0.559 GB, free: 17.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01553/0.5441, allocations: 6.478 MB / 0.5653 GB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007608/0.5449, allocations: 0.8143 MB / 0.5661 GB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00434/0.5493, allocations: 1.062 MB / 0.5672 GB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04186/0.5912, allocations: 17.63 MB / 0.5844 GB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004254/0.5916, allocations: 12.05 kB / 0.5844 GB, free: 7.203 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003148/0.5948, allocations: 451.3 kB / 0.5848 GB, free: 7.113 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005318/0.5953, allocations: 0.5779 MB / 0.5854 GB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.031/0.6263, allocations: 16.16 MB / 0.6012 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1015/0.7279, allocations: 53.43 MB / 0.6534 GB, free: 2.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01866/0.7466, allocations: 15.79 MB / 0.6688 GB, free: 1.621 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009272/0.7476, allocations: 200.8 kB / 0.669 GB, free: 1.426 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/0.7478, allocations: 86.64 kB / 0.669 GB, free: 1.336 MB / 446.1 MB Notification: Performance of pre-optimization done (n=504): time 8.666e-06/0.7478, allocations: 3.938 kB / 0.6691 GB, free: 1.332 MB / 446.1 MB Notification: Performance of matching and sorting (n=504): time 0.02343/0.7712, allocations: 11.47 MB / 0.6803 GB, free: 5.617 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.643e-05/0.7714, allocations: 133.5 kB / 0.6804 GB, free: 5.465 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005767/0.7771, allocations: 3.466 MB / 0.6838 GB, free: 1.988 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001111/0.7783, allocations: 105.7 kB / 0.6839 GB, free: 1.879 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003034/0.7813, allocations: 4.322 MB / 0.6881 GB, free: 13.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002348/0.7837, allocations: 1.712 MB / 0.6898 GB, free: 11.83 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004606/0.7842, allocations: 136 kB / 0.6899 GB, free: 11.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003948/0.7846, allocations: 0.5831 MB / 0.6905 GB, free: 11.11 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004913/0.7895, allocations: 3.343 MB / 0.6937 GB, free: 7.762 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006542/0.7961, allocations: 5.662 MB / 0.6992 GB, free: 1.094 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006751/0.8028, allocations: 4.649 MB / 0.7038 GB, free: 12.49 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-05/0.8029, allocations: 24 kB / 0.7038 GB, free: 12.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.01823/0.8212, allocations: 10.37 MB / 0.7139 GB, free: 2.523 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.113e-05/0.8213, allocations: 40 kB / 0.714 GB, free: 2.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/0.8214, allocations: 76.03 kB / 0.714 GB, free: 2.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00283/0.8243, allocations: 1.072 MB / 0.7151 GB, free: 1.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2591/1.083, allocations: 1.524 MB / 0.7166 GB, free: 163.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/1.097, allocations: 12.62 MB / 0.7289 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005608/1.103, allocations: 0.8571 MB / 0.7297 GB, free: 157.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001066/1.104, allocations: 320.3 kB / 0.73 GB, free: 157.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 341 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (796): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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: 4 {(4,100.0%) 30,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007621/1.112, allocations: 4.113 MB / 0.7341 GB, free: 156.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.113, allocations: 401.2 kB / 0.7344 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/1.125, allocations: 8.019 MB / 0.7423 GB, free: 153.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009079/1.134, allocations: 6.63 MB / 0.7488 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.584e-05/1.134, allocations: 15.45 kB / 0.7488 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-05/1.134, allocations: 26.72 kB / 0.7488 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03002/1.164, allocations: 17.51 MB / 0.7659 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-05/1.165, allocations: 8.125 kB / 0.7659 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003461/1.168, allocations: 0.9259 MB / 0.7668 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00239/1.17, allocations: 0.9592 MB / 0.7677 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004712/1.171, allocations: 118.6 kB / 0.7679 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/1.183, allocations: 12.45 MB / 0.78 GB, free: 127.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.183, allocations: 8 kB / 0.78 GB, free: 127.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/1.198, allocations: 12.6 MB / 0.7923 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003088/1.201, allocations: 1.115 MB / 0.7934 GB, free: 113.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008822/1.202, allocations: 96 kB / 0.7935 GB, free: 113.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002554/1.204, allocations: 313.2 kB / 0.7938 GB, free: 112.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006387/1.205, allocations: 360 kB / 0.7941 GB, free: 112.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002727/1.205, allocations: 156 kB / 0.7943 GB, free: 112.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003243/1.209, allocations: 2.338 MB / 0.7966 GB, free: 110 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.209, allocations: 3.562 kB / 0.7966 GB, free: 110 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008316/1.217, allocations: 2.656 MB / 0.7992 GB, free: 107.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (sineVoltage_m.plug_p.reference.gamma,sineVoltage_e.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (487): * Single equations (assignments): 475 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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: 4 {(4,100.0%) 30,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01531/1.232, allocations: 15.06 MB / 0.8139 GB, free: 91.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01184/1.244, allocations: 8.706 MB / 0.8224 GB, free: 83.03 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/1.244, allocations: 4.188 kB / 0.8224 GB, free: 83.03 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005456/1.25, allocations: 4.268 MB / 0.8265 GB, free: 78.71 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004156/1.254, allocations: 0.8012 MB / 0.8273 GB, free: 77.92 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3309/1.585, allocations: 101.4 MB / 0.9263 GB, free: 156.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008969/1.594, allocations: 7.172 MB / 0.9333 GB, free: 154.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007114/1.601, allocations: 2.508 MB / 0.9358 GB, free: 154.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005971/1.607, allocations: 3.645 MB / 0.9393 GB, free: 151.3 MB / 494.1 MB Notification: Performance of SimCode: time 2.525e-06/1.607, allocations: 2.125 kB / 0.9393 GB, free: 151.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1784/1.785, allocations: 128 MB / 1.064 GB, free: 28.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/1.785, allocations: 200.7 kB / 1.065 GB, free: 28.26 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.14/5.926, allocations: 0 / 1.065 GB, free: 28.26 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_EquivalentCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_EquivalentCircuit.fmu > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1) Environment - environmentSimulation: