Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",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.001076/0.001081, allocations: 109 kB / 17.06 MB, free: 5.969 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.0009842/0.0009842, allocations: 200 kB / 18.01 MB, free: 5.051 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.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 43.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2897, allocations: 49.43 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005952/0.2956, allocations: 4.448 MB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.2981, allocations: 1.207 MB / 405.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002865/0.2984, allocations: 8 kB / 405.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004547/0.2989, allocations: 142.8 kB / 406.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.2994, allocations: 210.2 kB / 406.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/0.2998, allocations: 207.6 kB / 406.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006973/0.3005, allocations: 0.7552 MB / 407.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004092/0.3009, allocations: 270.5 kB / 407.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003323/0.3013, allocations: 286.9 kB / 407.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.3016, allocations: 330.4 kB / 408.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.406e-05/0.3017, allocations: 64 kB / 408.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.646e-05/0.3018, allocations: 64 kB / 408.2 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.302, allocations: 151.4 kB / 408.4 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.3023, allocations: 338.3 kB / 408.7 MB, free: 332 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007848/0.303, allocations: 0.7498 MB / 409.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3031, allocations: 0 / 409.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3031, allocations: 0 / 409.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.3031, allocations: 0 / 409.5 MB, free: 15.57 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001713/0.3048, allocations: 0.9658 MB / 410.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3049, allocations: 16.03 kB / 410.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.305, allocations: 94.7 kB / 410.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.3051, allocations: 76.47 kB / 410.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.3057, allocations: 414.2 kB / 411 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.3057, allocations: 41.67 kB / 411.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.98e-05/0.3058, allocations: 56.12 kB / 411.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009839/0.3068, allocations: 0.5534 MB / 411.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3068, allocations: 0 / 411.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.28e-05/0.3069, allocations: 24 kB / 411.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.3069, allocations: 12 kB / 411.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008362/0.3077, allocations: 421 kB / 412.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00282/0.3106, allocations: 1.817 MB / 413.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007979/0.3114, allocations: 0.5273 MB / 414.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009947/0.3124, allocations: 449.1 kB / 414.9 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.101e-05/0.3124, allocations: 12.31 kB / 414.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005304/0.313, allocations: 298.2 kB / 415.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.623e-06/0.313, allocations: 0 / 415.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.003829/0.3168, allocations: 1.318 MB / 416.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.317, allocations: 239.3 kB / 416.7 MB, free: 7.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.3174, allocations: 421.9 kB / 417.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.3175, allocations: 37.7 kB / 417.2 MB, free: 7.457 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.3177, allocations: 308.8 kB / 417.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.3178, allocations: 158.6 kB / 417.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.3179, allocations: 94.2 kB / 417.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3181, allocations: 354.8 kB / 418.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.3184, allocations: 153 kB / 418.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004389/0.3189, allocations: 317.7 kB / 418.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007282/0.3196, allocations: 451.1 kB / 419 MB, free: 5.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3196, allocations: 0 / 419 MB, free: 5.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001748/0.3214, allocations: 0.7909 MB / 419.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3214, allocations: 8 kB / 419.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3214, allocations: 4 kB / 419.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007577/0.3222, allocations: 218.9 kB / 420 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.3225, allocations: 75.84 kB / 420.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004768/0.3273, allocations: 3.142 MB / 423.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000502/0.3278, allocations: 87.64 kB / 423.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/0.3279, allocations: 20 kB / 423.3 MB, free: 1.039 MB / 334.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: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002477/0.3281, allocations: 177.7 kB / 423.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.769e-05/0.3282, allocations: 47.72 kB / 423.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.076e-05/0.3283, allocations: 56.86 kB / 423.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3283, allocations: 4 kB / 423.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3283, allocations: 4 kB / 423.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3283, allocations: 0 / 423.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.3305, allocations: 1.292 MB / 424.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.3305, allocations: 0 / 424.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.3307, allocations: 31.98 kB / 424.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005913/0.3313, allocations: 216.7 kB / 425.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.3313, allocations: 12 kB / 425.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004403/0.3358, allocations: 3.055 MB / 428.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3358, allocations: 0 / 428.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/0.3378, allocations: 0.95 MB / 429.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.3379, allocations: 124.8 kB / 429.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.101e-05/0.338, allocations: 8 kB / 429.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003631/0.3384, allocations: 43.91 kB / 429.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.564e-05/0.3385, allocations: 39.95 kB / 429.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/0.3385, allocations: 19.92 kB / 429.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003422/0.3389, allocations: 295.2 kB / 429.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3389, allocations: 0 / 429.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007081/0.3396, allocations: 187.7 kB / 429.9 MB, free: 10.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002293/0.3419, allocations: 1.501 MB / 431.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.3435, allocations: 0.6772 MB / 432 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/0.3435, allocations: 8.188 kB / 432.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007702/0.3443, allocations: 412.5 kB / 432.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005154/0.3448, allocations: 92.94 kB / 432.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007474/0.3523, allocations: 4.915 MB / 437.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/0.3528, allocations: 0.8551 MB / 438.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.353, allocations: 44.38 kB / 438.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002213/0.3532, allocations: 187.4 kB / 438.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3532, allocations: 3.938 kB / 438.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.038/0.3912, allocations: 12.29 MB / 450.8 MB, free: 5.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.91, allocations: 11.22 kB / 450.8 MB, free: 5.273 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches