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.001234/0.001234, allocations: 117.6 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.001382/0.001382, allocations: 200.7 kB / 18.74 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.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2787, allocations: 50.54 MB / 408.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003562/0.2823, allocations: 2.803 MB / 411.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.2835, allocations: 0.6777 MB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2837, allocations: 4 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.2838, allocations: 47.5 kB / 412.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.284, allocations: 91.25 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.2843, allocations: 83.83 kB / 412.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003654/0.2847, allocations: 382.5 kB / 412.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.2849, allocations: 126.9 kB / 413 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.2851, allocations: 147.5 kB / 413.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.2852, allocations: 163.3 kB / 413.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.021e-05/0.2853, allocations: 36 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.467e-05/0.2854, allocations: 32 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.77e-05/0.2854, allocations: 71.7 kB / 413.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.2856, allocations: 163.2 kB / 413.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003748/0.286, allocations: 378.5 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.286, allocations: 0 / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.286, allocations: 3.938 kB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.286, allocations: 0 / 414 MB, free: 12.48 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.001208/0.2872, allocations: 0.6612 MB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.2873, allocations: 12.03 kB / 414.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.178e-05/0.2873, allocations: 66.66 kB / 414.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.036e-05/0.2874, allocations: 40.7 kB / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.2878, allocations: 272.8 kB / 415 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.2878, allocations: 16.94 kB / 415 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.88e-05/0.2878, allocations: 24.38 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006447/0.2885, allocations: 315.4 kB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.2885, allocations: 0 / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.2886, allocations: 12 kB / 415.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.2886, allocations: 4 kB / 415.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007696/0.2893, allocations: 253.6 kB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.291, allocations: 1.086 MB / 416.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007901/0.2918, allocations: 210.6 kB / 416.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000307/0.2922, allocations: 88.78 kB / 417 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.2922, allocations: 7.938 kB / 417 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.2927, allocations: 165.9 kB / 417.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.074e-06/0.2927, allocations: 0 / 417.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002016/0.2947, allocations: 0.5107 MB / 417.7 MB, free: 8.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.2948, allocations: 106.8 kB / 417.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.2951, allocations: 290.6 kB / 418.1 MB, free: 8.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.2951, allocations: 29.64 kB / 418.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.2953, allocations: 200 kB / 418.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.198e-05/0.2953, allocations: 43.61 kB / 418.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.434e-05/0.2954, allocations: 61.89 kB / 418.4 MB, free: 7.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.2955, allocations: 330.8 kB / 418.7 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.2959, allocations: 92.16 kB / 418.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.2963, allocations: 198.1 kB / 419 MB, free: 7.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000665/0.2969, allocations: 313.4 kB / 419.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.2969, allocations: 4 kB / 419.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001149/0.2981, allocations: 427.3 kB / 419.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.2981, allocations: 40.66 kB / 419.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.2982, allocations: 7.938 kB / 419.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003332/0.2985, allocations: 68.91 kB / 419.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.2987, allocations: 51.89 kB / 419.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002226/0.301, allocations: 1.712 MB / 421.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.3013, allocations: 55.73 kB / 421.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.3013, allocations: 8 kB / 421.7 MB, free: 4.188 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.0001464/0.3015, allocations: 153.7 kB / 421.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.3015, allocations: 27.81 kB / 421.8 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.981e-05/0.3016, allocations: 33.64 kB / 421.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3016, allocations: 0 / 421.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.3016, allocations: 0 / 421.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3016, allocations: 0 / 421.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.3019, allocations: 297.4 kB / 422.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3019, allocations: 0 / 422.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.302, allocations: 23.97 kB / 422.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002529/0.3023, allocations: 68.75 kB / 422.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.3023, allocations: 4 kB / 422.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00212/0.3044, allocations: 1.715 MB / 424 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3045, allocations: 0 / 424 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.3055, allocations: 305.6 kB / 424.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.3056, allocations: 116.9 kB / 424.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.3057, allocations: 0 / 424.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.3059, allocations: 35.95 kB / 424.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.093e-05/0.306, allocations: 19.97 kB / 424.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.3061, allocations: 11.88 kB / 424.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002026/0.3063, allocations: 202 kB / 424.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3063, allocations: 0 / 424.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.3066, allocations: 79.89 kB / 424.7 MB, free: 0.875 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.001378/0.308, allocations: 0.8549 MB / 425.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.3091, allocations: 406 kB / 426 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.3091, allocations: 0 / 426 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004554/0.3095, allocations: 239 kB / 426.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.3099, allocations: 40.94 kB / 426.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005164/0.315, allocations: 2.999 MB / 429.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3154, allocations: 0.7596 MB / 430 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.3155, allocations: 22.3 kB / 430 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.3156, allocations: 79.41 kB / 430.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3156, allocations: 0 / 430.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.3422, allocations: 6.812 MB / 436.9 MB, free: 4.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.61, allocations: 15.52 kB / 436.9 MB, free: 4.562 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