Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",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.001144/0.001144, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001039/0.001039, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.344/1.344, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009729/0.0009729, allocations: 49.41 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.08496, allocations: 49.45 MB / 350.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004044/0.08905, allocations: 2.769 MB / 352.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.09023, allocations: 0.6466 MB / 353.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.09038, allocations: 4 kB / 353.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.09055, allocations: 43.52 kB / 353.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.09078, allocations: 95.23 kB / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.09104, allocations: 83.83 kB / 353.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.0914, allocations: 378.4 kB / 354.2 MB, free: 264 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.09164, allocations: 126.9 kB / 354.3 MB, free: 136 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.09183, allocations: 151.4 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.09202, allocations: 159.3 kB / 354.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.062e-05/0.09209, allocations: 32 kB / 354.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.064e-05/0.09216, allocations: 36 kB / 354.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.355e-05/0.09224, allocations: 75.69 kB / 354.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.09241, allocations: 167.2 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003612/0.09278, allocations: 375 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.09279, allocations: 0 / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.0928, allocations: 0 / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.09281, allocations: 0 / 355.3 MB, free: 15.16 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001376/0.0942, allocations: 0.6536 MB / 355.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.09425, allocations: 12.03 kB / 355.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.068e-05/0.09433, allocations: 58.73 kB / 356 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.254e-05/0.09442, allocations: 40.5 kB / 356 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.09478, allocations: 280.6 kB / 356.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.09481, allocations: 12.94 kB / 356.3 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.32e-05/0.09486, allocations: 24.38 kB / 356.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006776/0.09555, allocations: 311.5 kB / 356.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.09557, allocations: 0 / 356.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.09561, allocations: 8 kB / 356.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.09562, allocations: 8 kB / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007924/0.09642, allocations: 257.5 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.09806, allocations: 1.085 MB / 358 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008185/0.09889, allocations: 214.6 kB / 358.2 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.09923, allocations: 96.72 kB / 358.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.09926, allocations: 0 / 358.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005411/0.09981, allocations: 169.8 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/0.09982, allocations: 4 kB / 358.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002134/0.102, allocations: 0.5067 MB / 359 MB, free: 11.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.531e-05/0.1021, allocations: 106.8 kB / 359.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.1024, allocations: 290.5 kB / 359.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.1024, allocations: 33.64 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.1025, allocations: 191.6 kB / 359.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.885e-05/0.1026, allocations: 47.38 kB / 359.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-05/0.1027, allocations: 53.84 kB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1028, allocations: 334.8 kB / 360 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.1031, allocations: 92.16 kB / 360.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004191/0.1036, allocations: 202.6 kB / 360.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007081/0.1043, allocations: 308.4 kB / 360.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.1043, allocations: 0 / 360.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001212/0.1055, allocations: 435.6 kB / 361 MB, free: 8.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.1056, allocations: 33.7 kB / 361.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1056, allocations: 3.938 kB / 361.1 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003593/0.106, allocations: 72.8 kB / 361.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.1062, allocations: 52 kB / 361.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002715/0.1089, allocations: 1.704 MB / 362.9 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004033/0.1093, allocations: 55.72 kB / 363 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.1094, allocations: 8 kB / 363 MB, free: 6.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.1096, allocations: 149.7 kB / 363.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.1096, allocations: 23.72 kB / 363.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.732e-05/0.1097, allocations: 25.7 kB / 363.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1097, allocations: 8 kB / 363.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1097, allocations: 3.984 kB / 363.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1097, allocations: 3.984 kB / 363.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.11, allocations: 297.3 kB / 363.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.11, allocations: 0 / 363.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1101, allocations: 19.97 kB / 363.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002665/0.1104, allocations: 72.8 kB / 363.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.1104, allocations: 0 / 363.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002271/0.1127, allocations: 1.711 MB / 365.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1127, allocations: 4.062 kB / 365.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.1138, allocations: 313.7 kB / 365.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.1139, allocations: 108.8 kB / 365.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.1139, allocations: 8 kB / 365.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.1142, allocations: 27.95 kB / 365.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.1143, allocations: 27.97 kB / 365.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1143, allocations: 11.88 kB / 365.8 MB, free: 3.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002068/0.1145, allocations: 202 kB / 366 MB, free: 3.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1146, allocations: 0 / 366 MB, free: 3.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000377/0.1149, allocations: 79.84 kB / 366 MB, free: 3.574 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/0.1163, allocations: 0.847 MB / 366.9 MB, free: 2.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.1173, allocations: 408.4 kB / 367.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1174, allocations: 0 / 367.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004531/0.1178, allocations: 226.5 kB / 367.5 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.1181, allocations: 45.62 kB / 367.5 MB, free: 1.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1689/0.2871, allocations: 3.003 MB / 370.5 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.2874, allocations: 0.7499 MB / 371.3 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002135/0.2876, allocations: 26.33 kB / 371.3 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.2877, allocations: 79.78 kB / 371.4 MB, free: 23.83 MB / 302.1 MB Notification: Performance of SimCode: time 1.934e-06/0.2877, allocations: 2.719 kB / 371.4 MB, free: 23.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0446/0.3324, allocations: 6.679 MB / 378.1 MB, free: 23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.03, allocations: 10.06 kB / 378.1 MB, free: 22.99 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches