Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00191/0.00191, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002211/0.002211, allocations: 199.5 kB / 18.79 MB, free: 4.156 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.526/1.526, allocations: 230.4 MB / 250 MB, free: 9.047 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.002941/0.002941, allocations: 67.83 kB / 366.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2883, allocations: 53.31 MB / 420.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008046/0.2964, allocations: 6.113 MB / 426.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003498/0.2999, allocations: 1.552 MB / 427.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000727/0.3006, allocations: 15.94 kB / 427.9 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004518/0.301, allocations: 170.3 kB / 428 MB, free: 392 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006737/0.3017, allocations: 297.2 kB / 428.3 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009018/0.3026, allocations: 415.4 kB / 428.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001782/0.3044, allocations: 1.395 MB / 430.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00057/0.305, allocations: 297.3 kB / 430.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009589/0.3059, allocations: 0.4984 MB / 430.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007303/0.3067, allocations: 0.5719 MB / 431.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001975/0.3069, allocations: 136 kB / 431.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003606/0.3072, allocations: 180 kB / 431.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002636/0.3075, allocations: 271.1 kB / 432.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006425/0.3081, allocations: 0.5911 MB / 432.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001997/0.3101, allocations: 1.552 MB / 434.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3101, allocations: 0 / 434.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3101, allocations: 4 kB / 434.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.3101, allocations: 0 / 434.2 MB, free: 10.17 MB / 350.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.002775/0.3129, allocations: 1.409 MB / 435.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.313, allocations: 8.031 kB / 435.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001843/0.3132, allocations: 139.6 kB / 435.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003822/0.3135, allocations: 132.2 kB / 435.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009562/0.3145, allocations: 0.5621 MB / 436.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.822e-05/0.3146, allocations: 62.38 kB / 436.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.3147, allocations: 88.38 kB / 436.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.3164, allocations: 0.8547 MB / 437.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.3164, allocations: 8 kB / 437.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.125e-05/0.3165, allocations: 36 kB / 437.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.3165, allocations: 20 kB / 437.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001661/0.3182, allocations: 0.8511 MB / 438.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00578/0.324, allocations: 3.224 MB / 441.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.3252, allocations: 0.6326 MB / 442.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007355/0.326, allocations: 391.1 kB / 442.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.209e-05/0.326, allocations: 16.48 kB / 442.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.3261, allocations: 39.12 kB / 442.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 3.217e-06/0.3261, allocations: 0 / 442.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004809/0.3309, allocations: 2.269 MB / 444.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.3309, allocations: 60.06 kB / 445 MB, free: 15.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008372/0.3318, allocations: 0.6096 MB / 445.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.655e-05/0.3318, allocations: 41.7 kB / 445.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003579/0.3322, allocations: 452.3 kB / 446.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002476/0.3324, allocations: 269.7 kB / 446.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.3327, allocations: 150.6 kB / 446.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002154/0.3329, allocations: 394.8 kB / 446.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006649/0.3336, allocations: 321.9 kB / 447.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007674/0.3344, allocations: 472.6 kB / 447.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.3358, allocations: 0.8008 MB / 448.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3358, allocations: 4 kB / 448.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00229/0.3381, allocations: 1.119 MB / 449.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3381, allocations: 4 kB / 449.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.3381, allocations: 4 kB / 449.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005579/0.3387, allocations: 188.7 kB / 449.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008511/0.3395, allocations: 195.8 kB / 450 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004105/0.3436, allocations: 2.892 MB / 452.8 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007012/0.3443, allocations: 35.97 kB / 452.9 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.651e-05/0.3444, allocations: 32 kB / 452.9 MB, free: 6.848 MB / 366.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.0003971/0.3448, allocations: 236.1 kB / 453.1 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.3449, allocations: 83.47 kB / 453.2 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001805/0.3451, allocations: 91.27 kB / 453.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.3451, allocations: 8 kB / 453.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.3452, allocations: 4 kB / 453.3 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3452, allocations: 11.91 kB / 453.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.3463, allocations: 0.8885 MB / 454.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3463, allocations: 4 kB / 454.2 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007142/0.347, allocations: 147.8 kB / 454.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005204/0.3475, allocations: 179.4 kB / 454.6 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.996e-05/0.3476, allocations: 19.98 kB / 454.6 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004131/0.3517, allocations: 2.893 MB / 457.5 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3517, allocations: 3.938 kB / 457.5 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002879/0.3546, allocations: 1.428 MB / 458.9 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.3548, allocations: 152.6 kB / 459 MB, free: 492 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.3549, allocations: 16 kB / 459.1 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006036/0.3555, allocations: 51.95 kB / 459.1 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.3557, allocations: 52.62 kB / 459.2 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.76e-05/0.3557, allocations: 23.98 kB / 459.2 MB, free: 344 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005808/0.3563, allocations: 431 kB / 459.6 MB, free: 15.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3563, allocations: 0 / 459.6 MB, free: 15.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008565/0.3572, allocations: 243.9 kB / 459.8 MB, free: 15.68 MB / 382.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.003238/0.3604, allocations: 2 MB / 461.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002364/0.3628, allocations: 0.9941 MB / 462.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3628, allocations: 0 / 462.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/0.3642, allocations: 0.6197 MB / 463.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008465/0.365, allocations: 142.3 kB / 463.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.3774, allocations: 7.467 MB / 471.1 MB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006467/0.3781, allocations: 0.9775 MB / 472 MB, free: 3.188 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004147/0.3785, allocations: 97.44 kB / 472.1 MB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004516/0.3789, allocations: 319.3 kB / 472.4 MB, free: 2.777 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3789, allocations: 3.938 kB / 472.5 MB, free: 2.773 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05556/0.4345, allocations: 19.26 MB / 491.7 MB, free: 15.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.3, allocations: 10.98 kB / 491.7 MB, free: 15.79 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-12 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)