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.001175/0.001175, allocations: 101.3 kB / 17.05 MB, free: 6.125 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.001793/0.001793, allocations: 196.1 kB / 18 MB, free: 5.199 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.322/1.322, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 43.94 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2796, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007061/0.2867, allocations: 6.051 MB / 406.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002968/0.2897, allocations: 1.525 MB / 407.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008909/0.2907, allocations: 16 kB / 407.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006444/0.2914, allocations: 174.2 kB / 408 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.2925, allocations: 293.3 kB / 408.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.2937, allocations: 411.3 kB / 408.7 MB, free: 328 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001895/0.2956, allocations: 1.395 MB / 410.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006644/0.2963, allocations: 425.2 kB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009224/0.2973, allocations: 0.4945 MB / 411 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009676/0.2982, allocations: 0.568 MB / 411.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003494/0.2986, allocations: 132 kB / 411.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004444/0.2991, allocations: 168 kB / 411.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000272/0.2993, allocations: 275.2 kB / 412.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000775/0.3001, allocations: 0.5871 MB / 412.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001649/0.3018, allocations: 1.54 MB / 414.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3018, allocations: 4 kB / 414.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3018, allocations: 0 / 414.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.918e-05/0.3019, allocations: 0 / 414.3 MB, free: 10.71 MB / 334.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.003338/0.3052, allocations: 1.372 MB / 415.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.3053, allocations: 8.031 kB / 415.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002261/0.3055, allocations: 139.6 kB / 415.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/0.3058, allocations: 119.6 kB / 415.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009707/0.3068, allocations: 0.5499 MB / 416.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.339e-05/0.3069, allocations: 74.25 kB / 416.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.307, allocations: 88.38 kB / 416.6 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.3087, allocations: 0.8586 MB / 417.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.3087, allocations: 0 / 417.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.333e-05/0.3088, allocations: 36 kB / 417.5 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.3088, allocations: 24 kB / 417.5 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.3105, allocations: 0.8472 MB / 418.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00603/0.3165, allocations: 3.215 MB / 421.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.3177, allocations: 0.684 MB / 422.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007498/0.3185, allocations: 427.1 kB / 422.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.695e-05/0.3186, allocations: 16.55 kB / 422.7 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.3186, allocations: 39.12 kB / 422.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.514e-06/0.3186, allocations: 0 / 422.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004607/0.3232, allocations: 2.275 MB / 425 MB, free: 15.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.3233, allocations: 56.06 kB / 425.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007622/0.3241, allocations: 0.6135 MB / 425.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.322e-05/0.3242, allocations: 37.7 kB / 425.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.3245, allocations: 439.3 kB / 426.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.3247, allocations: 264.2 kB / 426.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.325, allocations: 146.6 kB / 426.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3251, allocations: 386.8 kB / 426.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006738/0.3258, allocations: 325.9 kB / 427.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007805/0.3266, allocations: 476.5 kB / 427.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.3281, allocations: 0.7969 MB / 428.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.3282, allocations: 0 / 428.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002452/0.3306, allocations: 1.118 MB / 429.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/0.3307, allocations: 14.44 kB / 429.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3307, allocations: 4 kB / 429.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006314/0.3313, allocations: 192.7 kB / 429.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008605/0.3322, allocations: 191.8 kB / 430 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004123/0.3363, allocations: 2.892 MB / 432.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007114/0.3371, allocations: 40.03 kB / 433 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.3372, allocations: 28.12 kB / 433 MB, free: 7.395 MB / 350.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.0004258/0.3376, allocations: 241.6 kB / 433.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.3379, allocations: 83 kB / 433.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.3381, allocations: 99.25 kB / 433.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3381, allocations: 8 kB / 433.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/0.3381, allocations: 4 kB / 433.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.3381, allocations: 3.984 kB / 433.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.3394, allocations: 0.8884 MB / 434.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.3394, allocations: 0 / 434.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007443/0.3401, allocations: 147.8 kB / 434.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005588/0.3407, allocations: 183.6 kB / 434.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.509e-05/0.3408, allocations: 19.98 kB / 434.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003689/0.3445, allocations: 2.877 MB / 437.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3445, allocations: 0 / 437.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.3472, allocations: 1.435 MB / 439 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.3474, allocations: 148.2 kB / 439.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.3476, allocations: 19.98 kB / 439.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006195/0.3482, allocations: 51.97 kB / 439.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.3483, allocations: 48.58 kB / 439.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.305e-05/0.3484, allocations: 27.98 kB / 439.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005367/0.3489, allocations: 431.1 kB / 439.7 MB, free: 476 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3489, allocations: 0 / 439.7 MB, free: 476 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008711/0.3498, allocations: 236 kB / 439.9 MB, free: 240 kB / 350.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.00302/0.3528, allocations: 2.011 MB / 441.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.3553, allocations: 1.048 MB / 443 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3553, allocations: 3.938 kB / 443 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001473/0.3568, allocations: 0.6395 MB / 443.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008643/0.3577, allocations: 142.2 kB / 443.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.3705, allocations: 7.437 MB / 451.2 MB, free: 4.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.3711, allocations: 0.9814 MB / 452.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004225/0.3716, allocations: 93.45 kB / 452.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004449/0.372, allocations: 315.3 kB / 452.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.372, allocations: 0 / 452.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04859/0.4206, allocations: 19 MB / 471.6 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.25, allocations: 26.19 kB / 471.6 MB, free: 0.5078 MB / 382.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)