Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 122.8 kB / 17.78 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.001654/0.001654, 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.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 55.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2835, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005019/0.2885, allocations: 2.815 MB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.29, allocations: 0.6777 MB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003707/0.2904, allocations: 4 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000257/0.2907, allocations: 51.5 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003476/0.2911, allocations: 83.25 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003395/0.2914, allocations: 91.83 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004701/0.2919, allocations: 378.5 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.2921, allocations: 118.9 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.2924, allocations: 147.5 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.2927, allocations: 167.3 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.619e-05/0.2927, allocations: 32 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.839e-05/0.2928, allocations: 36 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.758e-05/0.2929, allocations: 79.69 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2931, allocations: 159.2 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004594/0.2936, allocations: 381.5 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2936, allocations: 0 / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.2936, allocations: 0 / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.2936, allocations: 0 / 414 MB, free: 12.3 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001374/0.295, allocations: 0.6573 MB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.295, allocations: 12.03 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.831e-05/0.2951, allocations: 66.67 kB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.411e-05/0.2952, allocations: 40.69 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.2957, allocations: 264.9 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.2957, allocations: 16.94 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.2958, allocations: 24.38 kB / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006659/0.2964, allocations: 311.4 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2965, allocations: 0 / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.2965, allocations: 8 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2965, allocations: 8 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007543/0.2973, allocations: 253.5 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.299, allocations: 1.093 MB / 416.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007101/0.2997, allocations: 214.6 kB / 416.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.3, allocations: 92.78 kB / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.3, allocations: 0 / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004124/0.3004, allocations: 161.9 kB / 417.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.886e-06/0.3005, allocations: 3.984 kB / 417.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001983/0.3024, allocations: 0.5146 MB / 417.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.3025, allocations: 106.8 kB / 417.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.3029, allocations: 286.6 kB / 418.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.3029, allocations: 33.62 kB / 418.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.303, allocations: 196 kB / 418.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.3031, allocations: 43.62 kB / 418.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.339e-05/0.3032, allocations: 61.89 kB / 418.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3033, allocations: 330.8 kB / 418.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.3037, allocations: 96.16 kB / 418.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004157/0.3041, allocations: 198.1 kB / 419 MB, free: 6.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006409/0.3048, allocations: 305.4 kB / 419.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3048, allocations: 4 kB / 419.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001144/0.3059, allocations: 434.3 kB / 419.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.124e-05/0.306, allocations: 29.7 kB / 419.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.306, allocations: 7.938 kB / 419.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003495/0.3064, allocations: 76.89 kB / 419.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.3066, allocations: 47.91 kB / 419.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.3089, allocations: 1.712 MB / 421.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.3092, allocations: 52 kB / 421.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.3093, allocations: 16 kB / 421.7 MB, free: 4.012 MB / 334.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.0001492/0.3094, allocations: 157.7 kB / 421.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/0.3095, allocations: 31.75 kB / 421.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.817e-05/0.3095, allocations: 25.64 kB / 421.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3095, allocations: 4 kB / 421.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.3095, allocations: 0 / 421.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.3095, allocations: 0 / 421.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.3098, allocations: 297.4 kB / 422.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3098, allocations: 0 / 422.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.3099, allocations: 19.98 kB / 422.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002932/0.3102, allocations: 68.8 kB / 422.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.3103, allocations: 0 / 422.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.3123, allocations: 1.708 MB / 424 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3123, allocations: 4 kB / 424 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000936/0.3133, allocations: 313.6 kB / 424.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.3134, allocations: 112.9 kB / 424.4 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.3134, allocations: 4 kB / 424.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.3137, allocations: 31.97 kB / 424.4 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/0.3138, allocations: 19.97 kB / 424.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.3138, allocations: 11.88 kB / 424.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.314, allocations: 202 kB / 424.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.314, allocations: 4 kB / 424.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003655/0.3144, allocations: 75.89 kB / 424.7 MB, free: 0.7031 MB / 334.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.001246/0.3156, allocations: 0.8433 MB / 425.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009126/0.3165, allocations: 417.9 kB / 426 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3166, allocations: 0 / 426 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004285/0.317, allocations: 231.1 kB / 426.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.3173, allocations: 46.98 kB / 426.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004769/0.3221, allocations: 3.003 MB / 429.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.3224, allocations: 0.7518 MB / 430 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.3225, allocations: 30.27 kB / 430 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.3226, allocations: 79.41 kB / 430.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3226, allocations: 0 / 430.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04336/0.366, allocations: 6.815 MB / 436.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.59, allocations: 15.83 kB / 436.9 MB, free: 4.387 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches