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.001711/0.001711, allocations: 109.7 kB / 17.06 MB, free: 5.812 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.00192/0.00192, allocations: 200 kB / 18.01 MB, free: 4.941 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.418/1.418, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 55.89 kB / 350.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3509, allocations: 49.43 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.009431/0.3604, allocations: 4.459 MB / 404.7 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.3639, allocations: 1.203 MB / 405.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004275/0.3644, allocations: 11.94 kB / 406 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006088/0.3651, allocations: 142.8 kB / 406.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006264/0.3657, allocations: 194.3 kB / 406.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006554/0.3664, allocations: 199.6 kB / 406.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.3676, allocations: 0.763 MB / 407.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006951/0.3683, allocations: 266.5 kB / 407.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000502/0.3689, allocations: 286.9 kB / 407.8 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000602/0.3695, allocations: 322.5 kB / 408.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.3696, allocations: 64 kB / 408.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.3698, allocations: 67.94 kB / 408.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.3701, allocations: 143.5 kB / 408.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005494/0.3706, allocations: 346.3 kB / 408.7 MB, free: 316 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001321/0.372, allocations: 0.742 MB / 409.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.372, allocations: 8 kB / 409.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.372, allocations: 0 / 409.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.372, allocations: 0 / 409.5 MB, free: 15.56 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.002789/0.3748, allocations: 0.962 MB / 410.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.3749, allocations: 16.03 kB / 410.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.3751, allocations: 94.7 kB / 410.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.3753, allocations: 76.47 kB / 410.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008034/0.3761, allocations: 418.1 kB / 411 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.138e-05/0.3762, allocations: 41.69 kB / 411 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.3763, allocations: 56.12 kB / 411.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.378, allocations: 0.5496 MB / 411.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.3781, allocations: 0 / 411.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.413e-05/0.3782, allocations: 24 kB / 411.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.3782, allocations: 12 kB / 411.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.3796, allocations: 425 kB / 412.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004864/0.3845, allocations: 1.817 MB / 413.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.386, allocations: 0.531 MB / 414.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.3879, allocations: 457.1 kB / 414.9 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.388, allocations: 12.31 kB / 414.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009519/0.389, allocations: 290.2 kB / 415.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 3.226e-06/0.389, allocations: 4 kB / 415.2 MB, free: 9.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.007698/0.3967, allocations: 1.306 MB / 416.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002422/0.397, allocations: 243.3 kB / 416.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.3981, allocations: 425.9 kB / 417.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.766e-05/0.3983, allocations: 37.7 kB / 417.2 MB, free: 7.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004365/0.3987, allocations: 308.8 kB / 417.5 MB, free: 7.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.399, allocations: 154.7 kB / 417.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.3993, allocations: 98.2 kB / 417.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003029/0.3996, allocations: 354.8 kB / 418.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006733/0.4003, allocations: 149 kB / 418.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009268/0.4012, allocations: 321.6 kB / 418.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.4028, allocations: 451.2 kB / 419 MB, free: 5.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.4028, allocations: 0 / 419 MB, free: 5.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003587/0.4064, allocations: 0.787 MB / 419.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.52e-05/0.4065, allocations: 11.98 kB / 419.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.4065, allocations: 4 kB / 419.8 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/0.4079, allocations: 215 kB / 420 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/0.4084, allocations: 71.91 kB / 420.1 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009492/0.4179, allocations: 3.145 MB / 423.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009677/0.419, allocations: 87.59 kB / 423.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.291e-05/0.4191, allocations: 20 kB / 423.3 MB, free: 1.023 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.0004947/0.4196, allocations: 181.7 kB / 423.5 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.4198, allocations: 51.7 kB / 423.5 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.42, allocations: 52.88 kB / 423.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.42, allocations: 4 kB / 423.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.42, allocations: 4 kB / 423.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.4201, allocations: 3.984 kB / 423.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004494/0.4246, allocations: 1.28 MB / 424.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4246, allocations: 4 kB / 424.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.425, allocations: 39.91 kB / 424.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.4262, allocations: 208.6 kB / 425.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.234e-05/0.4262, allocations: 12 kB / 425.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008574/0.4348, allocations: 3.06 MB / 428.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.4349, allocations: 4.078 kB / 428.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004063/0.4389, allocations: 0.9422 MB / 429.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004407/0.4394, allocations: 124.8 kB / 429.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/0.4396, allocations: 11.98 kB / 429.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007846/0.4404, allocations: 39.97 kB / 429.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.4407, allocations: 36.11 kB / 429.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.574e-05/0.4407, allocations: 15.94 kB / 429.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008021/0.4415, allocations: 299.1 kB / 429.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.4416, allocations: 0 / 429.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001464/0.443, allocations: 187.7 kB / 429.9 MB, free: 10.24 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.004597/0.4477, allocations: 1.505 MB / 431.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00297/0.4506, allocations: 0.6733 MB / 432 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.4507, allocations: 8.188 kB / 432 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001457/0.4521, allocations: 424.4 kB / 432.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009761/0.4531, allocations: 97.27 kB / 432.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.4685, allocations: 4.907 MB / 437.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009541/0.4695, allocations: 0.859 MB / 438.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003745/0.4699, allocations: 48.45 kB / 438.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.4704, allocations: 183.4 kB / 438.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4704, allocations: 0 / 438.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0641/0.5345, allocations: 12.29 MB / 450.8 MB, free: 5.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.79, allocations: 8.188 kB / 450.8 MB, free: 5.246 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