Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001277/0.001277, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001533, allocations: 197.2 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 67.89 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2758, allocations: 50.53 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.006179/0.282, allocations: 4.497 MB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002479/0.2845, allocations: 1.269 MB / 414.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003032/0.2849, allocations: 15.94 kB / 414.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004544/0.2854, allocations: 142.7 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004417/0.2858, allocations: 214.2 kB / 414.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.2863, allocations: 215.6 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007111/0.287, allocations: 0.7591 MB / 415.9 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004693/0.2875, allocations: 270.5 kB / 416.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003808/0.2879, allocations: 298.9 kB / 416.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003438/0.2882, allocations: 330.5 kB / 416.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.77e-05/0.2883, allocations: 64 kB / 416.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.2884, allocations: 68 kB / 416.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.2886, allocations: 151.4 kB / 417.1 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002867/0.2889, allocations: 342.3 kB / 417.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007788/0.2897, allocations: 0.7537 MB / 418.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.2897, allocations: 0 / 418.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2897, allocations: 7.938 kB / 418.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.2897, allocations: 0 / 418.1 MB, free: 8.129 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.00172/0.2914, allocations: 0.9813 MB / 419.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.2915, allocations: 12.03 kB / 419.1 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.2916, allocations: 98.7 kB / 419.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002943/0.2919, allocations: 96.44 kB / 419.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000516/0.2924, allocations: 422.2 kB / 419.7 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.2925, allocations: 41.69 kB / 419.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.475e-05/0.2926, allocations: 56.12 kB / 419.8 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009554/0.2935, allocations: 0.5534 MB / 420.4 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.2935, allocations: 0 / 420.4 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.807e-05/0.2936, allocations: 23.98 kB / 420.4 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.2936, allocations: 12 kB / 420.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008264/0.2944, allocations: 421 kB / 420.8 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002865/0.2973, allocations: 1.821 MB / 422.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007795/0.2981, allocations: 0.5343 MB / 423.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.2991, allocations: 453 kB / 423.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.2992, allocations: 16.25 kB / 423.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000531/0.2997, allocations: 294.2 kB / 423.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.194e-06/0.2997, allocations: 0 / 423.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.003934/0.3037, allocations: 1.313 MB / 425.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.3038, allocations: 243.3 kB / 425.5 MB, free: 424 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005231/0.3044, allocations: 441.9 kB / 425.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.3044, allocations: 33.7 kB / 426 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.3046, allocations: 316.8 kB / 426.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.3048, allocations: 146.7 kB / 426.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.3049, allocations: 98.2 kB / 426.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.305, allocations: 358.8 kB / 426.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.3054, allocations: 153 kB / 427 MB, free: 14.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.3058, allocations: 325.5 kB / 427.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007179/0.3066, allocations: 447.4 kB / 427.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3066, allocations: 4 kB / 427.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001748/0.3083, allocations: 0.7795 MB / 428.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.3084, allocations: 8 kB / 428.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3084, allocations: 4.062 kB / 428.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000703/0.3091, allocations: 224.2 kB / 428.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.3094, allocations: 75.83 kB / 428.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004897/0.3143, allocations: 3.137 MB / 432 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005154/0.3149, allocations: 83.66 kB / 432.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.3149, allocations: 23.98 kB / 432.1 MB, free: 9.516 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: 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.0002771/0.3152, allocations: 182.2 kB / 432.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-05/0.3153, allocations: 51.67 kB / 432.3 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.593e-05/0.3154, allocations: 52.97 kB / 432.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.3154, allocations: 8 kB / 432.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3154, allocations: 0 / 432.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3154, allocations: 3.984 kB / 432.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.3177, allocations: 1.293 MB / 433.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.3177, allocations: 0 / 433.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.3179, allocations: 31.98 kB / 433.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006128/0.3185, allocations: 212.6 kB / 433.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.3185, allocations: 12 kB / 433.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004232/0.3228, allocations: 3.051 MB / 437 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.3228, allocations: 0 / 437 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.3247, allocations: 0.9415 MB / 437.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.3249, allocations: 136.7 kB / 438.1 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.522e-05/0.325, allocations: 8 kB / 438.1 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.3253, allocations: 39.97 kB / 438.1 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.3254, allocations: 40.05 kB / 438.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.3255, allocations: 19.92 kB / 438.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003295/0.3258, allocations: 303.1 kB / 438.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3258, allocations: 3.938 kB / 438.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006511/0.3265, allocations: 187.7 kB / 438.6 MB, free: 2.723 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.002236/0.3287, allocations: 1.497 MB / 440.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.3303, allocations: 0.6772 MB / 440.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3303, allocations: 4.062 kB / 440.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007185/0.331, allocations: 424.6 kB / 441.2 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.3316, allocations: 89.88 kB / 441.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007634/0.3392, allocations: 4.958 MB / 446.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004361/0.3397, allocations: 0.8668 MB / 447.1 MB, free: 9.949 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001866/0.3399, allocations: 44.45 kB / 447.2 MB, free: 9.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.3401, allocations: 187.4 kB / 447.4 MB, free: 9.723 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3401, allocations: 0 / 447.4 MB, free: 9.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03697/0.3771, allocations: 12.47 MB / 459.8 MB, free: 13.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.84, allocations: 5.969 kB / 459.8 MB, free: 13.52 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches