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.001222/0.001222, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 239.3 MB, free: 4.609 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.001407/0.001407, allocations: 188.5 kB / 289.5 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03733/0.03733, allocations: 8.789 MB / 348.5 MB, free: 4.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 77.5 kB / 411.2 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.08869, allocations: 51.56 MB / 462.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01936/0.1081, allocations: 18.91 MB / 481.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.1205, allocations: 5.035 MB / 486.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003971/0.1245, allocations: 155.6 kB / 486.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01909/0.1436, allocations: 8.213 MB / 495.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008113/0.1518, allocations: 2.166 MB / 497.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004627/0.1564, allocations: 1.577 MB / 498.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01332/0.1698, allocations: 10.67 MB / 0.4975 GB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04268/0.2125, allocations: 25.37 MB / 0.5223 GB, free: 5.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1912/0.4037, allocations: 6.036 MB / 0.5282 GB, free: 24.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009338/0.4131, allocations: 6.798 MB / 0.5348 GB, free: 24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005675/0.4188, allocations: 1.625 MB / 0.5364 GB, free: 24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007046/0.4259, allocations: 1.906 MB / 0.5383 GB, free: 24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005689/0.4316, allocations: 3.299 MB / 0.5415 GB, free: 23.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01587/0.4475, allocations: 6.393 MB / 0.5478 GB, free: 22.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02011/0.4677, allocations: 21.8 MB / 0.569 GB, free: 12.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4677, allocations: 0 / 0.569 GB, free: 12.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4677, allocations: 0.5 kB / 0.569 GB, free: 12.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004995/0.4682, allocations: 0 / 0.569 GB, free: 12.15 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.03666/0.5049, allocations: 13.81 MB / 0.5825 GB, free: 3.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.505, allocations: 10.97 kB / 0.5825 GB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0056/0.5106, allocations: 1.565 MB / 0.5841 GB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04202/0.5526, allocations: 7.854 MB / 0.5917 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/0.5675, allocations: 6.558 MB / 0.5981 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007795/0.5683, allocations: 0.8136 MB / 0.5989 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004085/0.5724, allocations: 1.064 MB / 0.6 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04258/0.615, allocations: 17.76 MB / 0.6173 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002984/0.6153, allocations: 15.91 kB / 0.6173 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002124/0.6175, allocations: 451.5 kB / 0.6178 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005186/0.618, allocations: 0.5735 MB / 0.6183 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03088/0.6489, allocations: 16.21 MB / 0.6342 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08822/0.7371, allocations: 53.34 MB / 0.6862 GB, free: 11.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01579/0.753, allocations: 15.76 MB / 0.7016 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005596/0.7586, allocations: 3.749 MB / 0.7053 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004102/0.759, allocations: 192.2 kB / 0.7055 GB, free: 6.477 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.317e-05/0.7591, allocations: 82.95 kB / 0.7056 GB, free: 6.387 MB / 494.1 MB Notification: Performance of pre-optimization done (n=492): time 6.612e-06/0.7591, allocations: 0 / 0.7056 GB, free: 6.387 MB / 494.1 MB Notification: Performance of matching and sorting (n=492): time 0.219/0.9782, allocations: 10.61 MB / 0.7159 GB, free: 159.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/0.9783, allocations: 128.5 kB / 0.716 GB, free: 159.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005956/0.9842, allocations: 3.497 MB / 0.7195 GB, free: 159 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007806/0.985, allocations: 105.7 kB / 0.7196 GB, free: 159 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002241/0.9873, allocations: 4.333 MB / 0.7238 GB, free: 156.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001623/0.9889, allocations: 1.672 MB / 0.7254 GB, free: 155.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002004/0.9909, allocations: 1.3 MB / 0.7267 GB, free: 155.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.856e-05/0.991, allocations: 310.9 kB / 0.727 GB, free: 155.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005417/0.9964, allocations: 3.267 MB / 0.7302 GB, free: 155.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006504/1.003, allocations: 5.621 MB / 0.7357 GB, free: 152.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/1.013, allocations: 9.508 MB / 0.745 GB, free: 146.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/1.013, allocations: 24.19 kB / 0.745 GB, free: 146.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01728/1.031, allocations: 10.26 MB / 0.755 GB, free: 142.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/1.031, allocations: 39.22 kB / 0.755 GB, free: 142.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001934/1.031, allocations: 73.28 kB / 0.7551 GB, free: 142.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003099/1.034, allocations: 1.096 MB / 0.7562 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006587/1.041, allocations: 1.516 MB / 0.7577 GB, free: 142.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/1.054, allocations: 13.63 MB / 0.771 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005649/1.06, allocations: 0.8419 MB / 0.7718 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00136/1.061, allocations: 323 kB / 0.7721 GB, free: 131.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 (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.00675/1.068, allocations: 4.119 MB / 0.7761 GB, free: 128.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009017/1.069, allocations: 395 kB / 0.7765 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/1.08, allocations: 7.861 MB / 0.7842 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008023/1.088, allocations: 6.495 MB / 0.7905 GB, free: 114.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.978e-05/1.088, allocations: 12 kB / 0.7905 GB, free: 114.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.572e-05/1.088, allocations: 24.59 kB / 0.7905 GB, free: 114.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02697/1.115, allocations: 17.7 MB / 0.8078 GB, free: 96.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-05/1.115, allocations: 16.25 kB / 0.8078 GB, free: 96.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003387/1.118, allocations: 0.9517 MB / 0.8088 GB, free: 95.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002486/1.121, allocations: 0.9886 MB / 0.8097 GB, free: 94.76 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005952/1.122, allocations: 131.7 kB / 0.8099 GB, free: 94.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01147/1.133, allocations: 13.31 MB / 0.8229 GB, free: 80.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.758e-06/1.133, allocations: 27.75 kB / 0.8229 GB, free: 80.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01447/1.148, allocations: 12.1 MB / 0.8347 GB, free: 68.17 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/1.15, allocations: 1.119 MB / 0.8358 GB, free: 67.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007991/1.151, allocations: 112 kB / 0.8359 GB, free: 66.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002818/1.153, allocations: 311.6 kB / 0.8362 GB, free: 66.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006639/1.154, allocations: 403.7 kB / 0.8366 GB, free: 66.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002617/1.154, allocations: 164 kB / 0.8367 GB, free: 66.05 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003102/1.157, allocations: 2.362 MB / 0.8391 GB, free: 63.69 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.158, allocations: 7.875 kB / 0.8391 GB, free: 63.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006419/1.164, allocations: 2.648 MB / 0.8416 GB, free: 61.02 MB / 494.1 MB 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.01436/1.178, allocations: 12.87 MB / 0.8542 GB, free: 47.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02446/1.203, allocations: 14.89 MB / 0.8688 GB, free: 32.64 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/1.203, allocations: 4 kB / 0.8688 GB, free: 32.64 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005689/1.209, allocations: 4.252 MB / 0.8729 GB, free: 28.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005247/1.214, allocations: 0.9483 MB / 0.8738 GB, free: 27.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2817/1.496, allocations: 66.73 MB / 0.939 GB, free: 144.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01313/1.509, allocations: 7.007 MB / 0.9458 GB, free: 141.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006713/1.515, allocations: 2.538 MB / 0.9483 GB, free: 141.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005888/1.521, allocations: 3.643 MB / 0.9519 GB, free: 138.6 MB / 494.1 MB Notification: Performance of SimCode: time 9.42e-07/1.521, allocations: 0 / 0.9519 GB, free: 138.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1771/1.698, allocations: 133.5 MB / 1.082 GB, free: 7.465 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/13.88, allocations: 6.859 kB / 1.082 GB, free: 7.461 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Machines.EquivalentCircuit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_Machines_EquivalentCircuit.fmu > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)