Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002058/0.002057, 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.002781/0.002781, 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.767/1.767, allocations: 227.7 MB / 247.1 MB, free: 10.36 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.00205/0.00205, allocations: 67.64 kB / 307.3 MB, free: 404 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1594, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.006025/0.1655, allocations: 2.936 MB / 360.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.1673, allocations: 0.7673 MB / 361.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.1675, allocations: 11.94 kB / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.1677, allocations: 47.52 kB / 361.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.168, allocations: 99.17 kB / 361.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.1684, allocations: 119.8 kB / 361.9 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005793/0.169, allocations: 414.4 kB / 362.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004121/0.1694, allocations: 131.2 kB / 362.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.1697, allocations: 151.4 kB / 362.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.1699, allocations: 171.2 kB / 362.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.221e-05/0.17, allocations: 40 kB / 362.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.715e-05/0.1701, allocations: 40 kB / 362.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1702, allocations: 87.67 kB / 362.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.1704, allocations: 171.2 kB / 363 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005437/0.171, allocations: 450.8 kB / 363.5 MB, free: 8.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.171, allocations: 0 / 363.5 MB, free: 8.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.358e-06/0.171, allocations: 0 / 363.5 MB, free: 8.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.171, allocations: 3.938 kB / 363.5 MB, free: 8.207 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001769/0.1728, allocations: 0.677 MB / 364.2 MB, free: 7.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.1728, allocations: 11.97 kB / 364.2 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.173, allocations: 62.72 kB / 364.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.306e-05/0.1731, allocations: 32.56 kB / 364.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.1735, allocations: 295.6 kB / 364.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.1736, allocations: 20.94 kB / 364.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.1737, allocations: 24.38 kB / 364.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007483/0.1745, allocations: 331.7 kB / 364.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1745, allocations: 4 kB / 364.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.1745, allocations: 12 kB / 364.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1745, allocations: 4 kB / 364.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008632/0.1754, allocations: 290 kB / 365.2 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.1777, allocations: 1.166 MB / 366.4 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009849/0.1787, allocations: 246.5 kB / 366.6 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003595/0.179, allocations: 108.8 kB / 366.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.1791, allocations: 0 / 366.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006714/0.1798, allocations: 177.9 kB / 366.9 MB, free: 4.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 3.176e-06/0.1798, allocations: 4 kB / 366.9 MB, free: 4.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.00251/0.1823, allocations: 0.6628 MB / 367.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1824, allocations: 110.8 kB / 367.7 MB, free: 3.715 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.1828, allocations: 278.6 kB / 368 MB, free: 3.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.1828, allocations: 33.7 kB / 368 MB, free: 3.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.183, allocations: 195.6 kB / 368.2 MB, free: 3.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.326e-05/0.1831, allocations: 47.58 kB / 368.2 MB, free: 3.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.1832, allocations: 49.94 kB / 368.3 MB, free: 3.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002555/0.1834, allocations: 334.8 kB / 368.6 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/0.1838, allocations: 108.4 kB / 368.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/0.1843, allocations: 196.9 kB / 368.9 MB, free: 2.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008249/0.1851, allocations: 313.9 kB / 369.2 MB, free: 2.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.1851, allocations: 4 kB / 369.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001399/0.1866, allocations: 467.6 kB / 369.7 MB, free: 1.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.494e-05/0.1866, allocations: 41.69 kB / 369.7 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.1867, allocations: 4 kB / 369.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005105/0.1872, allocations: 84.81 kB / 369.8 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.1874, allocations: 43.95 kB / 369.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.283/0.4705, allocations: 1.991 MB / 371.8 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007061/0.4712, allocations: 61 kB / 371.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-05/0.4713, allocations: 11.38 kB / 371.9 MB, free: 18.92 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003419/0.4717, allocations: 153.8 kB / 372.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.347e-05/0.4718, allocations: 24.89 kB / 372.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.803e-05/0.4718, allocations: 27.2 kB / 372.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.4719, allocations: 1.531 kB / 372.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4719, allocations: 0 / 372.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.4719, allocations: 2.25 kB / 372.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000561/0.4725, allocations: 322.1 kB / 372.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4725, allocations: 3.125 kB / 372.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.4727, allocations: 27.08 kB / 372.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004024/0.4731, allocations: 79.89 kB / 372.5 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.4731, allocations: 6.297 kB / 372.5 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002731/0.4758, allocations: 1.811 MB / 374.4 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.4759, allocations: 1.312 kB / 374.4 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.4771, allocations: 364 kB / 374.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.4773, allocations: 102.9 kB / 374.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.597e-05/0.4773, allocations: 12.41 kB / 374.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.4776, allocations: 32.12 kB / 374.9 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.4777, allocations: 25.22 kB / 374.9 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.4778, allocations: 3.406 kB / 374.9 MB, free: 17.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002575/0.478, allocations: 201 kB / 375.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.478, allocations: 1 kB / 375.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004742/0.4785, allocations: 84.09 kB / 375.2 MB, free: 17.01 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001675/0.4802, allocations: 0.907 MB / 376.1 MB, free: 16.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.4816, allocations: 444.5 kB / 376.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.4816, allocations: 2.875 kB / 376.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005725/0.4822, allocations: 230.8 kB / 376.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000418/0.4826, allocations: 48.45 kB / 376.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00688/0.4895, allocations: 3.128 MB / 379.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.4898, allocations: 0.7551 MB / 380.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.49, allocations: 28.95 kB / 380.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.4902, allocations: 84.16 kB / 380.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of SimCode: time 2.164e-06/0.4902, allocations: 0 / 380.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06058/0.5508, allocations: 6.774 MB / 387.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.82, allocations: 12.14 kB / 387.6 MB, free: 11.76 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1)