Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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/Complex 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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.00153/0.00153, allocations: 108.8 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.62/1.62, allocations: 222.9 MB / 241.1 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 51.05 kB / 300.1 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1368, allocations: 49.43 MB / 349.5 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008209/0.145, allocations: 6.058 MB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003911/0.149, allocations: 1.509 MB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.1504, allocations: 19.94 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008754/0.1513, allocations: 127 kB / 357.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001861/0.1532, allocations: 249.9 kB / 357.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.1547, allocations: 359.6 kB / 357.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001906/0.1566, allocations: 1.317 MB / 359.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006421/0.1572, allocations: 370.9 kB / 359.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006045/0.1578, allocations: 434.3 kB / 359.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006317/0.1585, allocations: 0.5289 MB / 360.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.1586, allocations: 72 kB / 360.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.1589, allocations: 108 kB / 360.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.1591, allocations: 207.2 kB / 360.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005428/0.1597, allocations: 0.5325 MB / 361.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.1611, allocations: 1.452 MB / 362.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.1612, allocations: 0 / 362.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1612, allocations: 0 / 362.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.1612, allocations: 0 / 362.8 MB, free: 7.133 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.003125/0.1643, allocations: 1.379 MB / 364.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.1644, allocations: 12.03 kB / 364.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000177/0.1646, allocations: 143.6 kB / 364.3 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.1648, allocations: 115.6 kB / 364.4 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008152/0.1656, allocations: 0.5422 MB / 365 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.026e-05/0.1657, allocations: 70.31 kB / 365.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.1658, allocations: 92.22 kB / 365.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/0.1675, allocations: 0.8547 MB / 366 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.1676, allocations: 0 / 366 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.685e-05/0.1677, allocations: 39.98 kB / 366 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.597e-05/0.1677, allocations: 24 kB / 366.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.1694, allocations: 0.8511 MB / 366.9 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2274/0.3968, allocations: 3.224 MB / 370.1 MB, free: 24.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.3986, allocations: 0.6658 MB / 370.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.3996, allocations: 429.8 kB / 371.2 MB, free: 24.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.278e-05/0.3997, allocations: 10.94 kB / 371.2 MB, free: 24.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.3998, allocations: 46.42 kB / 371.3 MB, free: 24.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.476e-06/0.3998, allocations: 2.516 kB / 371.3 MB, free: 24.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005601/0.4054, allocations: 2.262 MB / 373.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.4055, allocations: 59.06 kB / 373.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008482/0.4063, allocations: 0.6058 MB / 374.2 MB, free: 22.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.742e-05/0.4064, allocations: 42.08 kB / 374.3 MB, free: 22.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003583/0.4068, allocations: 436.1 kB / 374.7 MB, free: 22.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.407, allocations: 256.9 kB / 374.9 MB, free: 22.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.4073, allocations: 154.3 kB / 375.1 MB, free: 22.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.4075, allocations: 391.6 kB / 375.5 MB, free: 21.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007411/0.4083, allocations: 327.2 kB / 375.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008454/0.4091, allocations: 470.8 kB / 376.2 MB, free: 21.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.4106, allocations: 0.8085 MB / 377.1 MB, free: 20.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.4106, allocations: 1.531 kB / 377.1 MB, free: 20.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002747/0.4134, allocations: 1.113 MB / 378.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.309e-05/0.4135, allocations: 10.39 kB / 378.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/0.4135, allocations: 4.281 kB / 378.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007429/0.4143, allocations: 182.4 kB / 378.4 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.4153, allocations: 204.8 kB / 378.6 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004196/0.4195, allocations: 2.63 MB / 381.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.4206, allocations: 33.41 kB / 381.2 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.897e-05/0.4207, allocations: 34.06 kB / 381.3 MB, free: 18.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006921/0.4214, allocations: 236.4 kB / 381.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.4217, allocations: 86.75 kB / 381.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.4219, allocations: 91.23 kB / 381.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.4219, allocations: 11.69 kB / 381.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.607e-05/0.422, allocations: 3.219 kB / 381.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/0.422, allocations: 3.469 kB / 381.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/0.4239, allocations: 0.8863 MB / 382.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.4239, allocations: 3.938 kB / 382.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008025/0.4247, allocations: 151.3 kB / 382.7 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006096/0.4253, allocations: 183.8 kB / 382.9 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.814e-05/0.4254, allocations: 30.12 kB / 382.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003989/0.4294, allocations: 2.63 MB / 385.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.4295, allocations: 4.547 kB / 385.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003337/0.4328, allocations: 1.424 MB / 387 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004106/0.4333, allocations: 147.2 kB / 387.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.4334, allocations: 16.09 kB / 387.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006677/0.4341, allocations: 56.67 kB / 387.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002547/0.4343, allocations: 52.06 kB / 387.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.601e-05/0.4344, allocations: 23.38 kB / 387.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008146/0.4352, allocations: 427.7 kB / 387.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4352, allocations: 0 / 387.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001242/0.4365, allocations: 240.3 kB / 387.9 MB, free: 14.4 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003372/0.4399, allocations: 2.018 MB / 389.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002485/0.4424, allocations: 1.037 MB / 391 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.4424, allocations: 3.969 kB / 391 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/0.4438, allocations: 0.6376 MB / 391.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4448, allocations: 139.8 kB / 391.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.4574, allocations: 8.081 MB / 399.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.4579, allocations: 0.9853 MB / 400.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005591/0.4585, allocations: 96.36 kB / 400.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004179/0.4589, allocations: 317.1 kB / 401.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.443e-06/0.4589, allocations: 7.938 kB / 401.2 MB, free: 5.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03714/0.4961, allocations: 17.99 MB / 419.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002724/0.4964, allocations: 227.8 kB / 419.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/2.997, allocations: 0 / 419.4 MB, free: 3.504 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)