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.001253/0.001253, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.00123/0.00123, allocations: 189.4 kB / 18 MB, free: 5.098 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.44/1.44, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 47.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2563, 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.007514/0.2639, allocations: 6.061 MB / 406.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00296/0.2669, allocations: 1.517 MB / 407.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000411/0.2673, allocations: 19.94 kB / 407.9 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003729/0.2677, allocations: 170.3 kB / 408 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000554/0.2683, allocations: 285.2 kB / 408.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007892/0.2691, allocations: 415.4 kB / 408.7 MB, free: 316 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001386/0.2705, allocations: 1.387 MB / 410.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006241/0.2711, allocations: 433.2 kB / 410.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007625/0.2719, allocations: 0.4906 MB / 411 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007358/0.2727, allocations: 0.5641 MB / 411.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000187/0.2728, allocations: 136 kB / 411.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003463/0.2732, allocations: 172 kB / 411.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002342/0.2735, allocations: 275.1 kB / 412.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005873/0.274, allocations: 0.5911 MB / 412.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001731/0.2758, allocations: 1.536 MB / 414.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2758, allocations: 0 / 414.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2758, allocations: 0 / 414.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.2758, 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.002741/0.2786, allocations: 1.406 MB / 415.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.2786, allocations: 16.03 kB / 415.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001772/0.2788, allocations: 143.6 kB / 415.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001999/0.279, allocations: 116.2 kB / 415.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008389/0.2799, allocations: 0.5582 MB / 416.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.856e-05/0.2799, allocations: 70.31 kB / 416.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.2801, allocations: 88.33 kB / 416.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.2817, allocations: 0.8625 MB / 417.5 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.2817, allocations: 0 / 417.5 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.744e-05/0.2818, allocations: 36 kB / 417.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.2819, allocations: 20 kB / 417.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.2836, allocations: 0.8628 MB / 418.4 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005539/0.2891, allocations: 3.216 MB / 421.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.2903, allocations: 0.68 MB / 422.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007397/0.2911, allocations: 427.1 kB / 422.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.774e-05/0.2912, allocations: 16.48 kB / 422.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.2912, allocations: 51.12 kB / 422.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.013e-06/0.2912, allocations: 0 / 422.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004716/0.2959, allocations: 2.278 MB / 425.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.296, allocations: 60.06 kB / 425.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007409/0.2968, allocations: 0.6096 MB / 425.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.073e-05/0.2968, allocations: 41.7 kB / 425.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.2972, allocations: 452.3 kB / 426.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.2974, allocations: 269.7 kB / 426.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/0.2977, allocations: 146.6 kB / 426.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.2979, allocations: 390.7 kB / 427 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006734/0.2986, allocations: 321.9 kB / 427.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000786/0.2994, allocations: 468.6 kB / 427.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.3008, allocations: 0.8086 MB / 428.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3009, allocations: 0 / 428.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002272/0.3031, allocations: 1.119 MB / 429.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3032, allocations: 12.06 kB / 429.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.3032, allocations: 4 kB / 429.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005654/0.3038, allocations: 184.7 kB / 429.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008689/0.3046, allocations: 199.8 kB / 430.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00402/0.3087, allocations: 2.892 MB / 433 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006879/0.3094, allocations: 28.05 kB / 433 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.168e-05/0.3095, allocations: 39.98 kB / 433.1 MB, free: 7.293 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.0003922/0.3099, allocations: 229.7 kB / 433.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.31, allocations: 87.42 kB / 433.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/0.3102, allocations: 95.38 kB / 433.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3102, allocations: 8 kB / 433.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/0.3102, allocations: 7.938 kB / 433.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.3102, allocations: 7.984 kB / 433.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.3114, allocations: 0.8886 MB / 434.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.3115, allocations: 4 kB / 434.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007192/0.3122, allocations: 143.8 kB / 434.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005663/0.3128, allocations: 195.7 kB / 434.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.93e-05/0.3128, allocations: 19.98 kB / 434.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003895/0.3167, allocations: 2.888 MB / 437.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3168, allocations: 0 / 437.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/0.3196, allocations: 1.432 MB / 439.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.3198, allocations: 152.6 kB / 439.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3199, allocations: 12 kB / 439.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006076/0.3205, allocations: 55.95 kB / 439.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.3207, allocations: 56.61 kB / 439.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-05/0.3207, allocations: 23.98 kB / 439.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005575/0.3213, allocations: 427.1 kB / 439.8 MB, free: 356 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3213, allocations: 0 / 439.8 MB, free: 356 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008656/0.3222, allocations: 243.9 kB / 440 MB, free: 112 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.003137/0.3253, allocations: 2.008 MB / 442 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.3276, allocations: 1.041 MB / 443.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3277, allocations: 7.938 kB / 443.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.3291, allocations: 0.6395 MB / 443.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008122/0.3299, allocations: 154.4 kB / 443.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/0.3421, allocations: 7.464 MB / 451.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006217/0.3428, allocations: 0.9814 MB / 452.3 MB, free: 3.516 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004058/0.3432, allocations: 89.47 kB / 452.4 MB, free: 3.426 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004488/0.3437, allocations: 331.2 kB / 452.7 MB, free: 3.102 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3437, allocations: 0 / 452.7 MB, free: 3.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05164/0.3953, allocations: 19.01 MB / 471.7 MB, free: 356 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.53, allocations: 8.062 kB / 471.7 MB, free: 348 kB / 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)