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-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.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.008044/0.008044, allocations: 103.1 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.346/1.346, allocations: 222.9 MB / 239.4 MB, free: 4.496 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.001394/0.001394, allocations: 180.5 kB / 289.7 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03448/0.03448, allocations: 8.798 MB / 348.7 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 75.88 kB / 463.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09353, allocations: 51.56 MB / 0.5029 GB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.0203/0.1139, allocations: 18.92 MB / 0.5214 GB, free: 6.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.1258, allocations: 5.019 MB / 0.5263 GB, free: 1.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00445/0.1303, allocations: 155.6 kB / 0.5264 GB, free: 1.742 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2333/0.3637, allocations: 8.218 MB / 0.5345 GB, free: 3.469 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007306/0.371, allocations: 2.157 MB / 0.5366 GB, free: 3.402 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004354/0.3754, allocations: 1.577 MB / 0.5381 GB, free: 3.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01423/0.3896, allocations: 10.76 MB / 0.5486 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0366/0.4263, allocations: 25.3 MB / 0.5733 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01042/0.4367, allocations: 6.099 MB / 0.5793 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01066/0.4474, allocations: 6.77 MB / 0.5859 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003729/0.4512, allocations: 1.621 MB / 0.5875 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006415/0.4576, allocations: 1.917 MB / 0.5893 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004913/0.4626, allocations: 3.294 MB / 0.5926 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01284/0.4755, allocations: 6.391 MB / 0.5988 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02753/0.503, allocations: 21.9 MB / 0.6202 GB, free: 5.934 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.5031, allocations: 7.875 kB / 0.6202 GB, free: 5.926 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5031, allocations: 0 / 0.6202 GB, free: 5.926 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00065/0.5037, allocations: 0 / 0.6202 GB, free: 5.926 MB / 430.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.04364/0.5474, allocations: 13.78 MB / 0.6337 GB, free: 8.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.5475, allocations: 11.97 kB / 0.6337 GB, free: 8.148 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007079/0.5546, allocations: 1.567 MB / 0.6352 GB, free: 6.578 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04419/0.5988, allocations: 7.879 MB / 0.6429 GB, free: 14.78 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01572/0.6145, allocations: 6.76 MB / 0.6495 GB, free: 7.988 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000895/0.6155, allocations: 0.8098 MB / 0.6503 GB, free: 7.188 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004476/0.62, allocations: 1.065 MB / 0.6513 GB, free: 6.133 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04781/0.6678, allocations: 17.77 MB / 0.6687 GB, free: 4.34 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004634/0.6683, allocations: 15.81 kB / 0.6687 GB, free: 4.324 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003154/0.6715, allocations: 453.4 kB / 0.6691 GB, free: 3.891 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006765/0.6722, allocations: 0.5774 MB / 0.6697 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03293/0.7051, allocations: 16.21 MB / 0.6855 GB, free: 3.074 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4978/1.203, allocations: 52.69 MB / 0.737 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01479/1.218, allocations: 15.75 MB / 0.7523 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006156/1.224, allocations: 3.758 MB / 0.756 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004373/1.224, allocations: 193 kB / 0.7562 GB, free: 131 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.663e-05/1.225, allocations: 84.05 kB / 0.7563 GB, free: 131 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=492): time 7.724e-06/1.225, allocations: 3.406 kB / 0.7563 GB, free: 131 MB / 0.5294 GB Notification: Performance of matching and sorting (n=492): time 0.02034/1.245, allocations: 10.62 MB / 0.7667 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/1.245, allocations: 129 kB / 0.7668 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005278/1.25, allocations: 3.495 MB / 0.7702 GB, free: 130 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005719/1.251, allocations: 106 kB / 0.7703 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001875/1.253, allocations: 4.344 MB / 0.7745 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001605/1.254, allocations: 1.666 MB / 0.7762 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001601/1.256, allocations: 1.303 MB / 0.7774 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.14e-05/1.256, allocations: 308.3 kB / 0.7777 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003886/1.26, allocations: 3.268 MB / 0.7809 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004981/1.265, allocations: 5.617 MB / 0.7864 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008704/1.274, allocations: 9.512 MB / 0.7957 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.208e-05/1.274, allocations: 22.38 kB / 0.7957 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01423/1.288, allocations: 10.26 MB / 0.8057 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.095e-05/1.288, allocations: 39.75 kB / 0.8058 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/1.288, allocations: 75.91 kB / 0.8058 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002557/1.291, allocations: 1.085 MB / 0.8069 GB, free: 113.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004896/1.296, allocations: 1.515 MB / 0.8084 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01216/1.308, allocations: 13.63 MB / 0.8217 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004603/1.313, allocations: 0.8479 MB / 0.8225 GB, free: 101.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007465/1.313, allocations: 312 kB / 0.8228 GB, free: 101.1 MB / 0.5294 GB 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 (790): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 4 systems {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00514/1.318, allocations: 4.11 MB / 0.8268 GB, free: 96.93 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007196/1.319, allocations: 395 kB / 0.8272 GB, free: 96.54 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/1.33, allocations: 7.864 MB / 0.8349 GB, free: 88.62 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007558/1.337, allocations: 6.483 MB / 0.8412 GB, free: 82.08 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/1.337, allocations: 12 kB / 0.8412 GB, free: 82.07 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-05/1.337, allocations: 31.83 kB / 0.8413 GB, free: 82.04 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02387/1.361, allocations: 17.52 MB / 0.8584 GB, free: 64.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.531e-05/1.361, allocations: 17.25 kB / 0.8584 GB, free: 64.33 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003212/1.364, allocations: 0.9517 MB / 0.8593 GB, free: 63.38 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002395/1.367, allocations: 0.9825 MB / 0.8603 GB, free: 62.39 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003901/1.367, allocations: 128 kB / 0.8604 GB, free: 62.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/1.379, allocations: 13.3 MB / 0.8734 GB, free: 48.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/1.379, allocations: 19.94 kB / 0.8734 GB, free: 48.44 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01422/1.393, allocations: 12.11 MB / 0.8852 GB, free: 35.79 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002224/1.395, allocations: 1.119 MB / 0.8863 GB, free: 34.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007243/1.396, allocations: 108 kB / 0.8864 GB, free: 34.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002417/1.399, allocations: 327.6 kB / 0.8867 GB, free: 34.22 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006244/1.399, allocations: 407.7 kB / 0.8871 GB, free: 33.82 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002682/1.4, allocations: 164 kB / 0.8873 GB, free: 33.66 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002879/1.402, allocations: 2.354 MB / 0.8896 GB, free: 31.31 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.61e-07/1.402, allocations: 0 / 0.8896 GB, free: 31.31 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007685/1.41, allocations: 2.645 MB / 0.8922 GB, free: 28.66 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (501): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 4 systems {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01451/1.425, allocations: 12.88 MB / 0.9047 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01213/1.437, allocations: 8.614 MB / 0.9132 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.393e-05/1.437, allocations: 8.125 kB / 0.9132 GB, free: 6.543 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006367/1.443, allocations: 4.247 MB / 0.9173 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005639/1.449, allocations: 0.9433 MB / 0.9182 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3431/1.792, allocations: 59.39 MB / 0.9762 GB, free: 169.7 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009987/1.802, allocations: 7.011 MB / 0.9831 GB, free: 167.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006223/1.808, allocations: 2.532 MB / 0.9856 GB, free: 167 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006343/1.815, allocations: 3.642 MB / 0.9891 GB, free: 163.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.513e-06/1.815, allocations: 0 / 0.9891 GB, free: 163.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.186/2.001, allocations: 132.8 MB / 1.119 GB, free: 45.56 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.9/20.9, allocations: 7.922 kB / 1.119 GB, free: 45.55 MB / 0.5607 GB (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/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)