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.001264/0.001264, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3471, allocations: 50.54 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.006348/0.3535, allocations: 4.49 MB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.3563, allocations: 1.269 MB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007191/0.3571, allocations: 15.94 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000701/0.3578, allocations: 146.8 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008335/0.3587, allocations: 214.2 kB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006771/0.3594, allocations: 211.6 kB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.3605, allocations: 0.7669 MB / 415.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004823/0.361, allocations: 266.5 kB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005598/0.3615, allocations: 294.9 kB / 416.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005567/0.3621, allocations: 330.5 kB / 416.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.3623, allocations: 64 kB / 416.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.3625, allocations: 68 kB / 416.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.3627, allocations: 143.5 kB / 417 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004301/0.3631, allocations: 354.2 kB / 417.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008595/0.364, allocations: 0.7537 MB / 418.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.364, allocations: 0 / 418.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.338e-06/0.364, allocations: 0 / 418.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.683e-05/0.364, allocations: 7.938 kB / 418.2 MB, free: 8.086 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.00214/0.3662, allocations: 0.9814 MB / 419.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.3662, allocations: 11.97 kB / 419.1 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.3663, allocations: 98.7 kB / 419.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.3667, allocations: 100.4 kB / 419.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.3673, allocations: 422.1 kB / 419.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.3673, allocations: 41.69 kB / 419.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.199e-05/0.3674, allocations: 56.12 kB / 419.8 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009566/0.3684, allocations: 0.5496 MB / 420.4 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.3684, allocations: 0 / 420.4 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.712e-05/0.3685, allocations: 23.98 kB / 420.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.3685, allocations: 16 kB / 420.4 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000832/0.3693, allocations: 421 kB / 420.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002789/0.3721, allocations: 1.825 MB / 422.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008051/0.373, allocations: 0.5379 MB / 423.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009419/0.3739, allocations: 445 kB / 423.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.374, allocations: 8.328 kB / 423.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005144/0.3745, allocations: 298.2 kB / 423.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.3745, allocations: 4 kB / 423.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.003789/0.3783, allocations: 1.31 MB / 425.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.3784, allocations: 239.3 kB / 425.5 MB, free: 384 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006045/0.3791, allocations: 441.8 kB / 425.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.61e-05/0.3791, allocations: 37.7 kB / 426 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.3794, allocations: 308.9 kB / 426.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.3795, allocations: 146.7 kB / 426.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.3797, allocations: 98.2 kB / 426.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3798, allocations: 358.8 kB / 426.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.3802, allocations: 149 kB / 427 MB, free: 14.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004599/0.3807, allocations: 329.5 kB / 427.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007667/0.3815, allocations: 447.4 kB / 427.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3815, allocations: 0 / 427.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001725/0.3832, allocations: 0.7911 MB / 428.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3832, allocations: 8 kB / 428.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3833, allocations: 4 kB / 428.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000716/0.384, allocations: 216.3 kB / 428.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.3843, allocations: 75.89 kB / 428.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005124/0.3894, allocations: 3.134 MB / 432 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005621/0.39, allocations: 83.66 kB / 432.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/0.3901, allocations: 23.98 kB / 432.1 MB, free: 9.48 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.0003155/0.3904, allocations: 190.1 kB / 432.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.3905, allocations: 51.67 kB / 432.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.3906, allocations: 56.97 kB / 432.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3906, allocations: 4 kB / 432.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.3907, allocations: 7.984 kB / 432.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3907, allocations: 4 kB / 432.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/0.3931, allocations: 1.278 MB / 433.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3931, allocations: 0 / 433.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.3933, allocations: 35.92 kB / 433.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005966/0.3939, allocations: 216.6 kB / 433.9 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.3939, allocations: 8 kB / 433.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004323/0.3982, allocations: 3.054 MB / 437 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3983, allocations: 0 / 437 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.4003, allocations: 0.9454 MB / 437.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.4004, allocations: 128.7 kB / 438 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.174e-05/0.4005, allocations: 12 kB / 438.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.4009, allocations: 35.97 kB / 438.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.401, allocations: 36 kB / 438.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/0.401, allocations: 19.94 kB / 438.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000354/0.4014, allocations: 307.1 kB / 438.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.854e-06/0.4014, allocations: 0 / 438.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006961/0.4021, allocations: 187.6 kB / 438.6 MB, free: 2.688 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.002243/0.4044, allocations: 1.498 MB / 440.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.4061, allocations: 0.677 MB / 440.8 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.4061, allocations: 4.188 kB / 440.8 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008074/0.4069, allocations: 428.5 kB / 441.2 MB, free: 32 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000575/0.4075, allocations: 93.86 kB / 441.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008385/0.4159, allocations: 4.95 MB / 446.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.4165, allocations: 0.8629 MB / 447.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002/0.4167, allocations: 52.45 kB / 447.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002386/0.4169, allocations: 183.4 kB / 447.4 MB, free: 9.688 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4169, allocations: 0 / 447.4 MB, free: 9.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04113/0.4581, allocations: 12.47 MB / 459.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.04, allocations: 8.062 kB / 459.8 MB, free: 13.48 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