Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_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.001375/0.001375, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001279/0.001279, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 55.92 kB / 328 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1128, allocations: 46.61 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.24/0.3529, allocations: 5.708 MB / 380.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003011/0.3559, allocations: 1.443 MB / 381.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000753/0.3567, allocations: 14.53 kB / 381.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004784/0.3572, allocations: 160.6 kB / 382 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007331/0.358, allocations: 276.2 kB / 382.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.359, allocations: 350.1 kB / 382.6 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001773/0.3608, allocations: 1.241 MB / 383.8 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006896/0.3615, allocations: 425.5 kB / 384.3 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008764/0.3624, allocations: 467.2 kB / 384.7 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008128/0.3632, allocations: 0.5216 MB / 385.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002294/0.3635, allocations: 123.9 kB / 385.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003985/0.3639, allocations: 157.5 kB / 385.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.3641, allocations: 251.3 kB / 385.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005835/0.3647, allocations: 0.539 MB / 386.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.3667, allocations: 1.409 MB / 387.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.3668, allocations: 6.094 kB / 387.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3668, allocations: 0 / 387.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.023e-05/0.3669, allocations: 0 / 387.7 MB, free: 6.82 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.003935/0.3708, allocations: 1.317 MB / 389 MB, free: 5.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.582e-05/0.3709, allocations: 10.72 kB / 389 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002389/0.3712, allocations: 128.1 kB / 389.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003688/0.3715, allocations: 109.8 kB / 389.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.3729, allocations: 0.5154 MB / 389.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.228e-05/0.373, allocations: 63.19 kB / 389.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002028/0.3732, allocations: 86.61 kB / 389.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.3752, allocations: 0.8775 MB / 390.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.3752, allocations: 4 kB / 390.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.377e-05/0.3753, allocations: 32.53 kB / 390.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.68e-05/0.3754, allocations: 22.69 kB / 390.9 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.3774, allocations: 0.7849 MB / 391.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005934/0.3833, allocations: 3.023 MB / 394.7 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.3845, allocations: 0.6516 MB / 395.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007208/0.3853, allocations: 409.6 kB / 395.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.686e-05/0.3854, allocations: 17.16 kB / 395.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.3854, allocations: 40.17 kB / 395.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.625e-06/0.3854, allocations: 0 / 395.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004931/0.3903, allocations: 2.209 MB / 398 MB, free: 1.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.3904, allocations: 64.2 kB / 398 MB, free: 1.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007876/0.3912, allocations: 0.4989 MB / 398.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.316e-05/0.3913, allocations: 37.83 kB / 398.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.3916, allocations: 404 kB / 399 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.3918, allocations: 270 kB / 399.2 MB, free: 408 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002429/0.392, allocations: 131.7 kB / 399.4 MB, free: 340 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3922, allocations: 378.2 kB / 399.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007111/0.3929, allocations: 309.1 kB / 400 MB, free: 15.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008001/0.3937, allocations: 420.6 kB / 400.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/0.3953, allocations: 0.7464 MB / 401.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3953, allocations: 1.062 kB / 401.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002557/0.3979, allocations: 1.046 MB / 402.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.3979, allocations: 8.75 kB / 402.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.398, allocations: 7.156 kB / 402.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006631/0.3986, allocations: 183 kB / 402.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009414/0.3996, allocations: 185.5 kB / 402.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.4042, allocations: 2.865 MB / 405.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009411/0.4052, allocations: 34.27 kB / 405.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.697e-05/0.4053, allocations: 29.11 kB / 405.5 MB, free: 12.3 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005388/0.4059, allocations: 224.9 kB / 405.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.4061, allocations: 78.25 kB / 405.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002067/0.4063, allocations: 86.67 kB / 405.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.4063, allocations: 10.22 kB / 405.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-05/0.4064, allocations: 6.531 kB / 405.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.4064, allocations: 3.984 kB / 405.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.4077, allocations: 0.8319 MB / 406.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.4078, allocations: 0 / 406.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007839/0.4085, allocations: 156.7 kB / 406.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006266/0.4092, allocations: 180.3 kB / 407.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.951e-05/0.4093, allocations: 22.64 kB / 407.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004449/0.4137, allocations: 2.86 MB / 410 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/0.4138, allocations: 4.625 kB / 410 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00341/0.4172, allocations: 1.387 MB / 411.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004101/0.4177, allocations: 141.4 kB / 411.5 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.4178, allocations: 20.7 kB / 411.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.4185, allocations: 48.88 kB / 411.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.4187, allocations: 55.58 kB / 411.6 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.871e-05/0.4187, allocations: 24.61 kB / 411.7 MB, free: 7.785 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005684/0.4193, allocations: 361.8 kB / 412 MB, free: 7.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4193, allocations: 0 / 412 MB, free: 7.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009938/0.4203, allocations: 223.1 kB / 412.2 MB, free: 7.543 MB / 334.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.C.v,Transistor2.ct.v,Transistor2.Tr.C.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 (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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003563/0.4239, allocations: 1.955 MB / 414.2 MB, free: 6.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002718/0.4266, allocations: 1.007 MB / 415.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.034e-06/0.4267, allocations: 1.344 kB / 415.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.4283, allocations: 0.6411 MB / 415.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.4295, allocations: 144 kB / 416 MB, free: 5.176 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.4424, allocations: 6.901 MB / 422.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006938/0.4431, allocations: 0.9577 MB / 423.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004563/0.4436, allocations: 81.61 kB / 423.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004523/0.444, allocations: 292.7 kB / 424.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.444, allocations: 0 / 424.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05213/0.4962, allocations: 17.55 MB / 441.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.59, allocations: 3.906 kB / 441.8 MB, free: 11.15 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)