Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002345/0.002345, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003233/0.003233, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.722/1.722, allocations: 227.7 MB / 247 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002529/0.002529, allocations: 68.92 kB / 307.3 MB, free: 416 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.15, allocations: 50.54 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005244/0.1553, allocations: 2.903 MB / 360.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1575, allocations: 0.7166 MB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004416/0.158, allocations: 8 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.1584, allocations: 55.44 kB / 361.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004046/0.1588, allocations: 83.2 kB / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004178/0.1592, allocations: 91.81 kB / 361.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006828/0.1599, allocations: 378.4 kB / 362.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003505/0.1603, allocations: 153.3 kB / 362.2 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.1607, allocations: 155.4 kB / 362.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.1609, allocations: 159.3 kB / 362.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.161, allocations: 32 kB / 362.6 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.043e-05/0.1611, allocations: 32 kB / 362.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.939e-05/0.1611, allocations: 67.77 kB / 362.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.1613, allocations: 175.1 kB / 362.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.1618, allocations: 370.9 kB / 363.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1619, allocations: 0 / 363.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1619, allocations: 0 / 363.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.1619, allocations: 0 / 363.2 MB, free: 8.473 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001163/0.1631, allocations: 0.6082 MB / 363.8 MB, free: 7.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1631, allocations: 8.031 kB / 363.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.152e-05/0.1632, allocations: 70.72 kB / 363.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.99e-05/0.1633, allocations: 40.47 kB / 363.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.1637, allocations: 259.8 kB / 364.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.1637, allocations: 21.03 kB / 364.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.251e-05/0.1638, allocations: 40.31 kB / 364.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005728/0.1644, allocations: 278.2 kB / 364.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1644, allocations: 0 / 364.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.1644, allocations: 8 kB / 364.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.1644, allocations: 8 kB / 364.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004789/0.1649, allocations: 206.5 kB / 364.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.1666, allocations: 0.9907 MB / 365.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003581/0.167, allocations: 158.6 kB / 365.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.1672, allocations: 80.81 kB / 366 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.1672, allocations: 11.98 kB / 366 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.1673, allocations: 30.56 kB / 366 MB, free: 5.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.114e-06/0.1673, allocations: 0 / 366 MB, free: 5.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006394/0.1679, allocations: 211.5 kB / 366.2 MB, free: 5.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.168, allocations: 55.41 kB / 366.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/0.1683, allocations: 214.8 kB / 366.5 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.1683, allocations: 29.7 kB / 366.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.1685, allocations: 195.9 kB / 366.7 MB, free: 4.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.669e-05/0.1685, allocations: 63.02 kB / 366.8 MB, free: 4.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.23e-05/0.1686, allocations: 45.7 kB / 366.8 MB, free: 4.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.1688, allocations: 334.8 kB / 367.1 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.169, allocations: 63.95 kB / 367.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1693, allocations: 122 kB / 367.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.1697, allocations: 181.8 kB / 367.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.1697, allocations: 7.938 kB / 367.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000494/0.1702, allocations: 233.2 kB / 367.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.1702, allocations: 8 kB / 367.7 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1702, allocations: 0 / 367.7 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.1703, allocations: 8.125 kB / 367.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.1705, allocations: 63.91 kB / 367.8 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1706, allocations: 0 / 367.8 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.1707, allocations: 35.67 kB / 367.8 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.1707, allocations: 8 kB / 367.8 MB, free: 3.539 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.1709, allocations: 145.7 kB / 368 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-05/0.1709, allocations: 19.81 kB / 368 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004181/0.1714, allocations: 193.9 kB / 368.2 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1714, allocations: 4 kB / 368.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1714, allocations: 0 / 368.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1714, allocations: 0 / 368.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.1718, allocations: 329.2 kB / 368.5 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1718, allocations: 4 kB / 368.5 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.1721, allocations: 43.97 kB / 368.6 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.1721, allocations: 4 kB / 368.6 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.1721, allocations: 4 kB / 368.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.1721, allocations: 7.938 kB / 368.6 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.1721, allocations: 3.984 kB / 368.6 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006322/0.1728, allocations: 343.1 kB / 368.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.368e-05/0.1729, allocations: 104.8 kB / 369 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.949e-05/0.1729, allocations: 0 / 369 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.1731, allocations: 19.98 kB / 369 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.1731, allocations: 11.98 kB / 369.1 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.1732, allocations: 8 kB / 369.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.1733, allocations: 148.6 kB / 369.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1733, allocations: 0 / 369.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.1737, allocations: 75.75 kB / 369.3 MB, free: 2 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001037/0.1747, allocations: 0.8787 MB / 370.2 MB, free: 1.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004514/0.1752, allocations: 167.8 kB / 370.3 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.1752, allocations: 8.25 kB / 370.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.1754, allocations: 71.84 kB / 370.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.1758, allocations: 35.88 kB / 370.4 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2361/0.4119, allocations: 2.677 MB / 373.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.4124, allocations: 0.7707 MB / 373.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.4126, allocations: 26.3 kB / 373.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.4128, allocations: 94.84 kB / 374 MB, free: 17.95 MB / 302.1 MB Notification: Performance of SimCode: time 1.743e-06/0.4128, allocations: 1.188 kB / 374 MB, free: 17.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03495/0.4478, allocations: 4.427 MB / 378.4 MB, free: 17.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.701/9.149, allocations: 5.312 kB / 378.4 MB, free: 17.52 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1)