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.0008105/0.000811, allocations: 92.78 kB / 15.36 MB, free: 0.7383 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.363/1.363, allocations: 223.3 MB / 239.4 MB, free: 5.523 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.0009794/0.0009794, allocations: 180.4 kB / 290.6 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03339/0.03339, allocations: 8.797 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004249, allocations: 10.25 kB / 413.9 MB, free: 42.74 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09195/0.0924, allocations: 52.56 MB / 466.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01672/0.1092, allocations: 17.63 MB / 484.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.1206, allocations: 4.958 MB / 489.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004468/0.1251, allocations: 147.6 kB / 489.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004703/0.1299, allocations: 1.276 MB / 490.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008031/0.1379, allocations: 1.95 MB / 492.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00483/0.1428, allocations: 1.478 MB / 493.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0129/0.1557, allocations: 10.78 MB / 0.4929 GB, free: 6.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04499/0.2007, allocations: 24.93 MB / 0.5172 GB, free: 13.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006995/0.2077, allocations: 4.274 MB / 0.5214 GB, free: 9.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007575/0.2153, allocations: 5.143 MB / 0.5264 GB, free: 4.176 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001971/0.2173, allocations: 0.6602 MB / 0.5271 GB, free: 3.516 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00365/0.221, allocations: 0.9489 MB / 0.528 GB, free: 2.566 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002674/0.2237, allocations: 2.094 MB / 0.53 GB, free: 476 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1896/0.4133, allocations: 5.062 MB / 0.535 GB, free: 26.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01807/0.4314, allocations: 20.6 MB / 0.5551 GB, free: 19.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.4314, allocations: 5.391 kB / 0.5551 GB, free: 19.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4314, allocations: 1.656 kB / 0.5551 GB, free: 19.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000535/0.432, allocations: 0 / 0.5551 GB, free: 19.75 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.03159/0.4636, allocations: 11.44 MB / 0.5663 GB, free: 14.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.4636, allocations: 11.69 kB / 0.5663 GB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005587/0.4692, allocations: 1.567 MB / 0.5678 GB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04082/0.51, allocations: 7.887 MB / 0.5755 GB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01356/0.5236, allocations: 6.572 MB / 0.5819 GB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005674/0.5242, allocations: 0.8088 MB / 0.5827 GB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00412/0.5284, allocations: 1.064 MB / 0.5838 GB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04354/0.5719, allocations: 17.8 MB / 0.6011 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004632/0.5724, allocations: 15.91 kB / 0.6012 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004858/0.5773, allocations: 450.7 kB / 0.6016 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007128/0.5781, allocations: 0.5774 MB / 0.6021 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03223/0.6103, allocations: 16.25 MB / 0.618 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09019/0.7005, allocations: 53.45 MB / 0.6702 GB, free: 1.887 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01687/0.7174, allocations: 15.83 MB / 0.6857 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005504/0.723, allocations: 3.811 MB / 0.6894 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003835/0.7234, allocations: 200.6 kB / 0.6896 GB, free: 12.56 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.649e-05/0.7235, allocations: 82.98 kB / 0.6897 GB, free: 12.47 MB / 478.1 MB Notification: Performance of pre-optimization done (n=504): time 7.714e-06/0.7235, allocations: 0 / 0.6897 GB, free: 12.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=504): time 0.02154/0.745, allocations: 10.9 MB / 0.7003 GB, free: 1.484 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.7e-05/0.7451, allocations: 133.1 kB / 0.7004 GB, free: 1.336 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1736/0.9187, allocations: 3.492 MB / 0.7038 GB, free: 153.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008311/0.9196, allocations: 106.4 kB / 0.7039 GB, free: 153.7 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002073/0.9217, allocations: 4.322 MB / 0.7082 GB, free: 151.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00166/0.9234, allocations: 1.708 MB / 0.7098 GB, free: 150.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/0.9247, allocations: 0.5328 MB / 0.7104 GB, free: 150.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.205e-05/0.9247, allocations: 304 kB / 0.7106 GB, free: 150.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005936/0.9307, allocations: 3.348 MB / 0.7139 GB, free: 150.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005999/0.9367, allocations: 5.686 MB / 0.7195 GB, free: 147 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.9473, allocations: 9.668 MB / 0.7289 GB, free: 140.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001208/0.9474, allocations: 26.28 kB / 0.7289 GB, free: 140.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.016/0.9634, allocations: 10.42 MB / 0.7391 GB, free: 136.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.898e-05/0.9636, allocations: 35.62 kB / 0.7391 GB, free: 136.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/0.9638, allocations: 75.62 kB / 0.7392 GB, free: 136.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00279/0.9666, allocations: 1.073 MB / 0.7403 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005308/0.9719, allocations: 1.517 MB / 0.7417 GB, free: 135.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/0.9842, allocations: 12.48 MB / 0.7539 GB, free: 123.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005286/0.9895, allocations: 0.8555 MB / 0.7548 GB, free: 122.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/0.9908, allocations: 319.7 kB / 0.7551 GB, free: 122.4 MB / 478.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 (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.008012/0.9988, allocations: 4.111 MB / 0.7591 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/0.9999, allocations: 395 kB / 0.7595 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/1.013, allocations: 8.016 MB / 0.7673 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008618/1.021, allocations: 6.64 MB / 0.7738 GB, free: 105.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.453e-05/1.021, allocations: 16 kB / 0.7738 GB, free: 105.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-05/1.021, allocations: 31.89 kB / 0.7738 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02634/1.048, allocations: 17.95 MB / 0.7914 GB, free: 86.84 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/1.048, allocations: 18.62 kB / 0.7914 GB, free: 86.82 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003131/1.051, allocations: 0.9479 MB / 0.7923 GB, free: 85.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/1.053, allocations: 0.977 MB / 0.7933 GB, free: 84.89 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002987/1.054, allocations: 132 kB / 0.7934 GB, free: 84.76 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/1.064, allocations: 12.21 MB / 0.8053 GB, free: 72.04 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/1.064, allocations: 23.94 kB / 0.8053 GB, free: 72.02 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/1.079, allocations: 12.37 MB / 0.8174 GB, free: 59.11 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/1.081, allocations: 1.139 MB / 0.8185 GB, free: 57.95 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007974/1.082, allocations: 112 kB / 0.8186 GB, free: 57.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002658/1.085, allocations: 331.7 kB / 0.8189 GB, free: 57.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006344/1.085, allocations: 397.7 kB / 0.8193 GB, free: 57.13 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003024/1.086, allocations: 164 kB / 0.8195 GB, free: 56.97 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003969/1.09, allocations: 2.358 MB / 0.8218 GB, free: 54.61 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.71e-07/1.09, allocations: 6.25 kB / 0.8218 GB, free: 54.61 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007819/1.097, allocations: 2.652 MB / 0.8244 GB, free: 51.95 MB / 478.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 (507): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01494/1.112, allocations: 13.15 MB / 0.8372 GB, free: 38.27 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01098/1.123, allocations: 8.733 MB / 0.8457 GB, free: 29.45 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/1.123, allocations: 7.938 kB / 0.8458 GB, free: 29.44 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004967/1.128, allocations: 4.342 MB / 0.85 GB, free: 25.05 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009718/1.138, allocations: 0.9001 MB / 0.8509 GB, free: 24.16 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2846/1.423, allocations: 71.72 MB / 0.9209 GB, free: 152.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006386/1.429, allocations: 7.015 MB / 0.9278 GB, free: 149.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005939/1.435, allocations: 2.536 MB / 0.9302 GB, free: 149.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00382/1.439, allocations: 3.649 MB / 0.9338 GB, free: 146.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/1.439, allocations: 0 / 0.9338 GB, free: 146.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1552/1.594, allocations: 130.4 MB / 1.061 GB, free: 17.97 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/1.595, allocations: 220.2 kB / 1.061 GB, free: 17.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.413/6.007, allocations: 3.938 kB / 1.061 GB, free: 17.7 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/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)