Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001309, allocations: 116.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 63.84 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2921, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004982/0.2971, allocations: 2.943 MB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.2989, allocations: 0.7557 MB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003063/0.2992, allocations: 8 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.2995, allocations: 47.5 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002838/0.2998, allocations: 107.2 kB / 412.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003526/0.3002, allocations: 115.8 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004531/0.3006, allocations: 422.4 kB / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.3009, allocations: 127.2 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.3011, allocations: 163.4 kB / 413.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.3013, allocations: 171.2 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.3014, allocations: 40 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.941e-05/0.3014, allocations: 40 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.547e-05/0.3015, allocations: 83.69 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.3017, allocations: 175.2 kB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005193/0.3023, allocations: 449.3 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3023, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3023, allocations: 3.938 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.3023, allocations: 4 kB / 414.4 MB, free: 11.88 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001316/0.3036, allocations: 0.6845 MB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.3037, allocations: 8.031 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.064e-05/0.3038, allocations: 58.73 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.161e-05/0.3038, allocations: 44.64 kB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000436/0.3043, allocations: 303.7 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.3043, allocations: 24.92 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.3044, allocations: 24.38 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006973/0.3051, allocations: 331.8 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3051, allocations: 0 / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.3051, allocations: 8 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3051, allocations: 8 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008029/0.3059, allocations: 290 kB / 416.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.3078, allocations: 1.147 MB / 417.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008267/0.3086, allocations: 246.6 kB / 417.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.309, allocations: 104.8 kB / 417.7 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.309, allocations: 7.984 kB / 417.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000492/0.3095, allocations: 185.4 kB / 417.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.3095, allocations: 0 / 417.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002558/0.3121, allocations: 0.6669 MB / 418.5 MB, free: 7.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.3122, allocations: 102.8 kB / 418.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.3126, allocations: 286.6 kB / 418.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.3126, allocations: 33.69 kB / 418.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.3128, allocations: 200.1 kB / 419.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.845e-05/0.3128, allocations: 51.58 kB / 419.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.3129, allocations: 49.94 kB / 419.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3131, allocations: 331 kB / 419.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.3134, allocations: 104.4 kB / 419.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004025/0.3138, allocations: 212.7 kB / 419.9 MB, free: 6.082 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007007/0.3145, allocations: 314.6 kB / 420.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3146, allocations: 0 / 420.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001236/0.3158, allocations: 479.6 kB / 420.6 MB, free: 5.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.3159, allocations: 37.7 kB / 420.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3159, allocations: 4 kB / 420.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003903/0.3163, allocations: 80.8 kB / 420.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.3165, allocations: 51.97 kB / 420.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/0.3191, allocations: 1.994 MB / 422.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.3195, allocations: 55.88 kB / 422.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.3195, allocations: 15.94 kB / 422.9 MB, free: 2.867 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001603/0.3197, allocations: 153.7 kB / 423 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/0.3197, allocations: 23.86 kB / 423 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.868e-05/0.3198, allocations: 25.78 kB / 423.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3198, allocations: 3.984 kB / 423.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.3198, allocations: 0 / 423.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3198, allocations: 0 / 423.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.3201, allocations: 329.3 kB / 423.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3201, allocations: 4 kB / 423.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.3203, allocations: 23.97 kB / 423.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002675/0.3205, allocations: 84.86 kB / 423.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.3206, allocations: 8 kB / 423.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002235/0.3228, allocations: 1.797 MB / 425.3 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.3228, allocations: 4.031 kB / 425.3 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3239, allocations: 373.5 kB / 425.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.049e-05/0.324, allocations: 101 kB / 425.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.324, allocations: 7.938 kB / 425.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.3243, allocations: 31.95 kB / 425.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.335e-05/0.3243, allocations: 19.98 kB / 425.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.3244, allocations: 11.92 kB / 425.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.3246, allocations: 198 kB / 426 MB, free: 15.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3246, allocations: 0 / 426 MB, free: 15.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003749/0.3249, allocations: 79.89 kB / 426.1 MB, free: 15.36 MB / 350.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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001346/0.3263, allocations: 0.9091 MB / 427 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000959/0.3273, allocations: 437.8 kB / 427.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3273, allocations: 0 / 427.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004723/0.3278, allocations: 239.1 kB / 427.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.3281, allocations: 56.66 kB / 427.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.3331, allocations: 3.114 MB / 430.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.3334, allocations: 0.7558 MB / 431.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.3335, allocations: 26.28 kB / 431.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.3336, allocations: 83.41 kB / 431.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3336, allocations: 0 / 431.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.3622, allocations: 6.879 MB / 438.6 MB, free: 2.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.36, allocations: 19.48 kB / 438.6 MB, free: 2.805 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_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_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches