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.00117/0.00117, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 63.88 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.1017, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.006234/0.1079, allocations: 4.473 MB / 362.1 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002609/0.1106, allocations: 1.285 MB / 363.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005022/0.1111, allocations: 15.94 kB / 363.4 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005515/0.1117, allocations: 146.7 kB / 363.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007005/0.1124, allocations: 194.2 kB / 363.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006268/0.113, allocations: 223.6 kB / 363.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009841/0.114, allocations: 0.759 MB / 364.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.1145, allocations: 266.5 kB / 364.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005292/0.115, allocations: 298.9 kB / 365.2 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004864/0.1155, allocations: 330.4 kB / 365.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.1157, allocations: 64 kB / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.1159, allocations: 72 kB / 365.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.116, allocations: 151.4 kB / 365.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003523/0.1164, allocations: 342.3 kB / 366.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008754/0.1173, allocations: 0.7398 MB / 366.9 MB, free: 4.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.827e-06/0.1173, allocations: 4 kB / 366.9 MB, free: 4.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1173, allocations: 0 / 366.9 MB, free: 4.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.854e-05/0.1174, allocations: 0 / 366.9 MB, free: 4.629 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002328/0.1197, allocations: 0.9625 MB / 367.9 MB, free: 3.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1198, allocations: 8.031 kB / 367.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.1199, allocations: 102.7 kB / 368 MB, free: 3.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00033/0.1202, allocations: 95.95 kB / 368.1 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.1208, allocations: 421.7 kB / 368.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.1208, allocations: 37.69 kB / 368.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.322e-05/0.1209, allocations: 56.38 kB / 368.6 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.1219, allocations: 0.5534 MB / 369.1 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.122, allocations: 0 / 369.1 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.122, allocations: 20 kB / 369.2 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.122, allocations: 16 kB / 369.2 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009025/0.123, allocations: 421 kB / 369.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1762/0.2992, allocations: 1.827 MB / 371.4 MB, free: 20.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.3003, allocations: 0.5285 MB / 371.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.3015, allocations: 429.4 kB / 372.4 MB, free: 20.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/0.3016, allocations: 5.25 kB / 372.4 MB, free: 20.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000609/0.3022, allocations: 301.4 kB / 372.7 MB, free: 19.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.236e-06/0.3022, allocations: 0 / 372.7 MB, free: 19.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.004401/0.3066, allocations: 1.319 MB / 374 MB, free: 19.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.167e-05/0.3067, allocations: 237 kB / 374.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000636/0.3073, allocations: 443 kB / 374.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.611e-05/0.3074, allocations: 36.08 kB / 374.7 MB, free: 19.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.3076, allocations: 311 kB / 375 MB, free: 18.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.962e-05/0.3077, allocations: 142 kB / 375.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.3079, allocations: 91.33 kB / 375.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.346e-05/0.308, allocations: 364.3 kB / 375.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.3083, allocations: 145.7 kB / 375.7 MB, free: 18.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004167/0.3088, allocations: 323.6 kB / 376 MB, free: 18.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007304/0.3095, allocations: 444.4 kB / 376.5 MB, free: 17.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.3095, allocations: 2.797 kB / 376.5 MB, free: 17.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00192/0.3114, allocations: 0.7813 MB / 377.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.3115, allocations: 9.625 kB / 377.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.3115, allocations: 5.062 kB / 377.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000751/0.3123, allocations: 226.8 kB / 377.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/0.3126, allocations: 68.75 kB / 377.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004617/0.3172, allocations: 3.128 MB / 380.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000533/0.3178, allocations: 84.92 kB / 380.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.3178, allocations: 20.73 kB / 380.8 MB, free: 15.21 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: 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.000246/0.3181, allocations: 179.9 kB / 380.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.618e-05/0.3181, allocations: 48.42 kB / 381 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.019e-05/0.3182, allocations: 63.22 kB / 381.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3182, allocations: 8.812 kB / 381.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3182, allocations: 0 / 381.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.3183, allocations: 2.016 kB / 381.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.3205, allocations: 1.281 MB / 382.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3205, allocations: 0 / 382.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.3207, allocations: 41.7 kB / 382.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006052/0.3213, allocations: 210.3 kB / 382.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.3213, allocations: 15.66 kB / 382.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004228/0.3256, allocations: 3.06 MB / 385.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3256, allocations: 4.469 kB / 385.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3276, allocations: 0.936 MB / 386.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.3277, allocations: 133.9 kB / 386.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.962e-05/0.3278, allocations: 6.75 kB / 386.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.3282, allocations: 47.45 kB / 386.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3283, allocations: 30.66 kB / 386.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.3283, allocations: 18.19 kB / 386.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000358/0.3287, allocations: 302.4 kB / 387.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3287, allocations: 4 kB / 387.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007257/0.3294, allocations: 187.1 kB / 387.3 MB, free: 11.34 MB / 302.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.002137/0.3316, allocations: 1.496 MB / 388.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.3332, allocations: 0.6718 MB / 389.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3332, allocations: 3.938 kB / 389.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007299/0.334, allocations: 430.2 kB / 389.9 MB, free: 9.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005275/0.3345, allocations: 74.62 kB / 390 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007128/0.3417, allocations: 5.087 MB / 395.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.342, allocations: 0.866 MB / 395.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.3422, allocations: 48.52 kB / 396 MB, free: 6.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.3424, allocations: 183.5 kB / 396.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3424, allocations: 0 / 396.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03475/0.3772, allocations: 12.21 MB / 408.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.59, allocations: 0 / 408.4 MB, free: 11.79 MB / 318.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