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.00107/0.00107, allocations: 91.62 kB / 16.65 MB, free: 6.59 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.001119/0.001119, allocations: 183.4 kB / 17.56 MB, free: 6.203 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.549/1.549, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002697, allocations: 4 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1107, allocations: 50.41 MB / 351.9 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00661/0.1174, allocations: 5.594 MB / 357.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004271/0.1217, allocations: 1.513 MB / 359 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.1229, allocations: 12 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000665/0.1236, allocations: 127 kB / 359.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00132/0.1249, allocations: 249.9 kB / 359.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009613/0.1259, allocations: 363.6 kB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.1272, allocations: 1.305 MB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000512/0.1277, allocations: 362.9 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004557/0.1281, allocations: 418.3 kB / 361.8 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005176/0.1287, allocations: 497.7 kB / 362.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.981e-05/0.1288, allocations: 56 kB / 362.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002134/0.129, allocations: 87.98 kB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.1292, allocations: 195.1 kB / 362.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004314/0.1296, allocations: 0.5341 MB / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.1307, allocations: 1.421 MB / 364.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1308, allocations: 4 kB / 364.6 MB, free: 6.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1308, allocations: 0 / 364.6 MB, free: 6.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1308, allocations: 0 / 364.6 MB, free: 6.84 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.002275/0.1331, allocations: 1.216 MB / 365.8 MB, free: 5.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.1331, allocations: 12.02 kB / 365.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001685/0.1333, allocations: 135.6 kB / 366 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.1335, allocations: 119.5 kB / 366.1 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006762/0.1342, allocations: 0.5422 MB / 366.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.275e-05/0.1342, allocations: 70.38 kB / 366.7 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.1344, allocations: 84.38 kB / 366.8 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.136, allocations: 0.8703 MB / 367.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.136, allocations: 0 / 367.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-05/0.1361, allocations: 40 kB / 367.7 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.83e-05/0.1361, allocations: 20 kB / 367.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.1377, allocations: 0.8824 MB / 368.6 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2035/0.3413, allocations: 3.277 MB / 371.9 MB, free: 23.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.3426, allocations: 0.6789 MB / 372.6 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008782/0.3435, allocations: 444.2 kB / 373 MB, free: 23.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.749e-05/0.3436, allocations: 12.95 kB / 373 MB, free: 23.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3436, allocations: 41.67 kB / 373 MB, free: 22.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.697e-06/0.3436, allocations: 0.6562 kB / 373 MB, free: 22.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004794/0.3484, allocations: 2.324 MB / 375.4 MB, free: 22.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.3485, allocations: 60 kB / 375.4 MB, free: 22.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007531/0.3492, allocations: 0.6089 MB / 376 MB, free: 21.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.3493, allocations: 38.33 kB / 376.1 MB, free: 21.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/0.3495, allocations: 439.8 kB / 376.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.3497, allocations: 266 kB / 376.8 MB, free: 21.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.3498, allocations: 70.75 kB / 376.8 MB, free: 21.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3499, allocations: 400.5 kB / 377.2 MB, free: 21.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006544/0.3506, allocations: 334 kB / 377.6 MB, free: 20.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00075/0.3514, allocations: 485.3 kB / 378 MB, free: 20.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.3528, allocations: 0.828 MB / 378.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3528, allocations: 1 kB / 378.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002154/0.3549, allocations: 1.143 MB / 380 MB, free: 19.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.355, allocations: 8.312 kB / 380 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.355, allocations: 1.969 kB / 380 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000517/0.3555, allocations: 187.9 kB / 380.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009004/0.3564, allocations: 207.1 kB / 380.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00324/0.3597, allocations: 2.639 MB / 383 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006866/0.3604, allocations: 43.42 kB / 383.1 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.566e-05/0.3604, allocations: 35.3 kB / 383.1 MB, free: 17.54 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.0003775/0.3608, allocations: 237.9 kB / 383.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.361, allocations: 80.22 kB / 383.4 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001956/0.3612, allocations: 94.7 kB / 383.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.3612, allocations: 7.312 kB / 383.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.323e-05/0.3612, allocations: 2.875 kB / 383.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.3612, allocations: 4.391 kB / 383.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.3624, allocations: 0.8876 MB / 384.4 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3624, allocations: 0 / 384.4 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007435/0.3631, allocations: 158.4 kB / 384.6 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005224/0.3637, allocations: 184.5 kB / 384.8 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.271e-05/0.3637, allocations: 17.5 kB / 384.8 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003107/0.3669, allocations: 2.652 MB / 387.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3669, allocations: 1.281 kB / 387.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002613/0.3695, allocations: 1.468 MB / 388.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.3696, allocations: 160.2 kB / 389 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.433e-05/0.3697, allocations: 13.41 kB / 389.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006304/0.3704, allocations: 66.81 kB / 389.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.3705, allocations: 55.06 kB / 389.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.346e-05/0.3706, allocations: 23.45 kB / 389.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005601/0.3712, allocations: 428.2 kB / 389.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3712, allocations: 0 / 389.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009352/0.3721, allocations: 240.6 kB / 389.9 MB, free: 13.56 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.002753/0.3749, allocations: 2.051 MB / 391.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.3772, allocations: 1.059 MB / 393 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3772, allocations: 5.938 kB / 393 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.3785, allocations: 0.6502 MB / 393.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007981/0.3793, allocations: 134.4 kB / 393.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.3895, allocations: 8.312 MB / 402.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.3899, allocations: 0.9853 MB / 403 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004154/0.3903, allocations: 89.47 kB / 403.1 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003467/0.3906, allocations: 323.3 kB / 403.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3907, allocations: 0 / 403.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.4226, allocations: 17.71 MB / 421.2 MB, free: 2.449 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/0.4228, allocations: 231.2 kB / 421.4 MB, free: 2.191 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.425/2.848, allocations: 0 / 421.4 MB, free: 2.191 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)