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.001446/0.001446, allocations: 122.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.001674/0.001674, allocations: 202 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.451/1.451, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002345/0.002345, allocations: 71.88 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2603, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005568/0.2659, allocations: 4.475 MB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002296/0.2683, allocations: 1.281 MB / 414.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000285/0.2686, allocations: 15.94 kB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004272/0.269, allocations: 146.8 kB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004189/0.2695, allocations: 194.2 kB / 414.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004893/0.27, allocations: 219.5 kB / 415.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007968/0.2708, allocations: 0.7591 MB / 415.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004233/0.2712, allocations: 270.5 kB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004071/0.2716, allocations: 298.9 kB / 416.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003818/0.272, allocations: 326.5 kB / 416.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.591e-05/0.2721, allocations: 64 kB / 416.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.2722, allocations: 72 kB / 416.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.2724, allocations: 151.4 kB / 417 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003099/0.2727, allocations: 350.2 kB / 417.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008028/0.2735, allocations: 0.7498 MB / 418.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2735, allocations: 0 / 418.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2735, allocations: 0 / 418.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.2736, allocations: 4 kB / 418.1 MB, free: 8.148 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.001728/0.2753, allocations: 0.9852 MB / 419.1 MB, free: 7.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.2753, allocations: 8.031 kB / 419.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.2755, allocations: 102.7 kB / 419.2 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002948/0.2758, allocations: 92.45 kB / 419.3 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005469/0.2763, allocations: 426.2 kB / 419.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.2764, allocations: 45.69 kB / 419.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-05/0.2765, allocations: 52.12 kB / 419.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000955/0.2774, allocations: 0.5573 MB / 420.4 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.2774, allocations: 0 / 420.4 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.2775, allocations: 24 kB / 420.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.2775, allocations: 12 kB / 420.4 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009093/0.2784, allocations: 421 kB / 420.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002961/0.2814, allocations: 1.821 MB / 422.7 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008225/0.2822, allocations: 0.5327 MB / 423.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000998/0.2833, allocations: 453 kB / 423.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.2833, allocations: 8.312 kB / 423.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005295/0.2838, allocations: 298.2 kB / 423.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.2839, allocations: 0 / 423.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.00378/0.2876, allocations: 1.306 MB / 425.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/0.2878, allocations: 247.3 kB / 425.5 MB, free: 444 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005187/0.2883, allocations: 437.9 kB / 425.9 MB, free: 0 / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.2884, allocations: 37.7 kB / 425.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.2886, allocations: 308.8 kB / 426.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.2888, allocations: 150.7 kB / 426.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.2889, allocations: 98.2 kB / 426.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2891, allocations: 354.8 kB / 426.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003405/0.2894, allocations: 161 kB / 427 MB, free: 14.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/0.2899, allocations: 317.5 kB / 427.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007701/0.2907, allocations: 455.3 kB / 427.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2907, allocations: 4 kB / 427.8 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001822/0.2926, allocations: 0.7756 MB / 428.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.2926, allocations: 8 kB / 428.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.2926, allocations: 4 kB / 428.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006908/0.2933, allocations: 220.7 kB / 428.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.2936, allocations: 71.84 kB / 428.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004969/0.2986, allocations: 3.142 MB / 432 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004618/0.299, allocations: 83.58 kB / 432.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.2991, allocations: 23.98 kB / 432.1 MB, free: 9.539 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.0002496/0.2994, allocations: 186.2 kB / 432.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.811e-05/0.2994, allocations: 55.67 kB / 432.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.204e-05/0.2995, allocations: 52.95 kB / 432.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2996, allocations: 4 kB / 432.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2996, allocations: 4 kB / 432.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2996, allocations: 3.984 kB / 432.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002222/0.3018, allocations: 1.281 MB / 433.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3018, allocations: 0 / 433.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.302, allocations: 39.97 kB / 433.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005805/0.3026, allocations: 212.6 kB / 433.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.3026, allocations: 11.98 kB / 433.9 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004542/0.3072, allocations: 3.051 MB / 437 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3072, allocations: 0 / 437 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.3091, allocations: 0.9415 MB / 437.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.3093, allocations: 128.7 kB / 438 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.995e-05/0.3093, allocations: 12 kB / 438 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.3097, allocations: 44.03 kB / 438.1 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.3098, allocations: 31.95 kB / 438.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.3098, allocations: 19.88 kB / 438.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003457/0.3101, allocations: 307.1 kB / 438.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3102, allocations: 4 kB / 438.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006612/0.3108, allocations: 191.7 kB / 438.6 MB, free: 2.742 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.002284/0.3131, allocations: 1.49 MB / 440.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3146, allocations: 0.6765 MB / 440.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3147, allocations: 4 kB / 440.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007274/0.3154, allocations: 429.5 kB / 441.2 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005132/0.3159, allocations: 85.86 kB / 441.3 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007628/0.3236, allocations: 4.962 MB / 446.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004909/0.3241, allocations: 0.8707 MB / 447.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.3243, allocations: 52.36 kB / 447.2 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.3245, allocations: 179.4 kB / 447.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3245, allocations: 0 / 447.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0425/0.367, allocations: 12.46 MB / 459.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.37, allocations: 7.938 kB / 459.8 MB, free: 13.54 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.1.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