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.00174/0.00174, 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.002006/0.002007, 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.473/1.473, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 67.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.28, allocations: 50.53 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004597/0.2846, allocations: 2.819 MB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.2861, allocations: 0.6738 MB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.2864, allocations: 4 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.2866, allocations: 47.5 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.2869, allocations: 83.2 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.2872, allocations: 83.89 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004417/0.2876, allocations: 386.5 kB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002415/0.2879, allocations: 122.9 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.2881, allocations: 143.5 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.2883, allocations: 167.3 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.57e-05/0.2884, allocations: 32 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.973e-05/0.2884, allocations: 36 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.53e-05/0.2885, allocations: 75.69 kB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.2887, allocations: 167.2 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000428/0.2891, allocations: 377.5 kB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2892, allocations: 0 / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2892, allocations: 0 / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.2892, allocations: 0 / 414 MB, free: 12.32 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.001334/0.2905, allocations: 0.6573 MB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2906, allocations: 8.031 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.73e-05/0.2907, allocations: 66.67 kB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.334e-05/0.2907, allocations: 44.69 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.2912, allocations: 268.9 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.2912, allocations: 12.94 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.2912, allocations: 24.38 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006637/0.2919, allocations: 315.4 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2919, allocations: 0 / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.292, allocations: 8 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.292, allocations: 8 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007539/0.2927, allocations: 253.5 kB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.2945, allocations: 1.082 MB / 416.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007349/0.2952, allocations: 218.6 kB / 416.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.2955, allocations: 92.72 kB / 417 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.2955, allocations: 0 / 417 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000432/0.296, allocations: 161.9 kB / 417.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.296, allocations: 4 kB / 417.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002016/0.298, allocations: 0.5146 MB / 417.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.439e-05/0.2981, allocations: 106.8 kB / 417.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.2984, allocations: 290.5 kB / 418 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.2985, allocations: 29.69 kB / 418.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.2986, allocations: 200 kB / 418.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/0.2987, allocations: 43.62 kB / 418.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.2988, allocations: 53.89 kB / 418.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.299, allocations: 338.8 kB / 418.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/0.2993, allocations: 92.16 kB / 418.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.2997, allocations: 198.1 kB / 419 MB, free: 6.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006768/0.3004, allocations: 309.4 kB / 419.3 MB, free: 6.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3004, allocations: 3.984 kB / 419.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001155/0.3016, allocations: 430.6 kB / 419.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.3016, allocations: 32.52 kB / 419.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.3016, allocations: 7.938 kB / 419.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003525/0.302, allocations: 72.89 kB / 419.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.3022, allocations: 55.91 kB / 419.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.3047, allocations: 1.708 MB / 421.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003305/0.305, allocations: 55.8 kB / 421.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.3051, allocations: 8 kB / 421.6 MB, free: 4.043 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.0001801/0.3053, allocations: 157.7 kB / 421.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.295e-05/0.3053, allocations: 27.81 kB / 421.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.3054, allocations: 29.64 kB / 421.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.289e-06/0.3054, allocations: 4 kB / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3054, allocations: 0 / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3054, allocations: 0 / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003217/0.3057, allocations: 305.3 kB / 422.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3057, allocations: 0 / 422.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.3058, allocations: 20.17 kB / 422.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002444/0.3061, allocations: 72.8 kB / 422.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.3061, allocations: 0 / 422.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.3084, allocations: 1.704 MB / 424 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3084, allocations: 0 / 424 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009533/0.3094, allocations: 309.5 kB / 424.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.3095, allocations: 112.9 kB / 424.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.899e-05/0.3096, allocations: 8 kB / 424.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.3099, allocations: 27.97 kB / 424.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.802e-05/0.31, allocations: 27.91 kB / 424.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.31, allocations: 7.938 kB / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000212/0.3102, allocations: 198 kB / 424.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3102, allocations: 3.938 kB / 424.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003441/0.3106, allocations: 79.89 kB / 424.7 MB, free: 0.7305 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.001349/0.3119, allocations: 0.8507 MB / 425.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000972/0.3129, allocations: 417.9 kB / 426 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3129, allocations: 0 / 426 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004413/0.3134, allocations: 231.1 kB / 426.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.3136, allocations: 48.97 kB / 426.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005156/0.3188, allocations: 3.01 MB / 429.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.3192, allocations: 0.748 MB / 430 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.3194, allocations: 26.28 kB / 430 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.3195, allocations: 79.41 kB / 430.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3195, allocations: 0 / 430.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.3549, allocations: 6.808 MB / 436.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.13, allocations: 11.59 kB / 436.9 MB, free: 4.414 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.1.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