Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 122.8 kB / 17.79 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.001234/0.001234, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3071, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004774/0.3119, allocations: 3.39 MB / 412.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.3138, allocations: 0.8493 MB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004213/0.3143, allocations: 7.938 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.3147, allocations: 71.34 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004607/0.3151, allocations: 119 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005046/0.3157, allocations: 151.8 kB / 413.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007086/0.3164, allocations: 0.4941 MB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003225/0.3167, allocations: 177 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003583/0.3171, allocations: 191.3 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.3174, allocations: 195.2 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.712e-05/0.3175, allocations: 52 kB / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.3176, allocations: 48 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.191e-05/0.3177, allocations: 107.6 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.3179, allocations: 226.9 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005856/0.3185, allocations: 0.5623 MB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3185, allocations: 0 / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3186, allocations: 3.938 kB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.3186, allocations: 0 / 415.4 MB, free: 10.89 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001425/0.32, allocations: 0.7057 MB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.3201, allocations: 8.031 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.964e-05/0.3202, allocations: 74.72 kB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.3204, allocations: 52.45 kB / 416.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.3209, allocations: 324.6 kB / 416.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.321, allocations: 25.38 kB / 416.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.633e-05/0.321, allocations: 35.94 kB / 416.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007583/0.3218, allocations: 386.1 kB / 417 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.3218, allocations: 0 / 417 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.3218, allocations: 20 kB / 417 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.3219, allocations: 11.98 kB / 417 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006529/0.3225, allocations: 295.9 kB / 417.3 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.3249, allocations: 1.439 MB / 418.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006453/0.3256, allocations: 230.8 kB / 419 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002288/0.3259, allocations: 100.8 kB / 419.1 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.3259, allocations: 11.91 kB / 419.1 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3259, allocations: 38.56 kB / 419.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.3259, allocations: 0 / 419.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002125/0.3281, allocations: 0.7509 MB / 419.9 MB, free: 6.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.3281, allocations: 59.34 kB / 419.9 MB, free: 6.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003684/0.3285, allocations: 312.6 kB / 420.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.3286, allocations: 33.7 kB / 420.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.3287, allocations: 227.6 kB / 420.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.748e-05/0.3288, allocations: 59.19 kB / 420.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3289, allocations: 49.61 kB / 420.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.329, allocations: 338.8 kB / 420.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.3293, allocations: 87.95 kB / 421 MB, free: 4.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/0.3295, allocations: 157.3 kB / 421.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004569/0.33, allocations: 247.7 kB / 421.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.33, allocations: 0 / 421.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009631/0.331, allocations: 430.8 kB / 421.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.331, allocations: 4 kB / 421.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.331, allocations: 4 kB / 421.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004616/0.3315, allocations: 117.7 kB / 422 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.3316, allocations: 39.91 kB / 422 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004049/0.3357, allocations: 3.56 MB / 425.6 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.336, allocations: 35.67 kB / 425.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.336, allocations: 12.06 kB / 425.6 MB, free: 4 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002213/0.3363, allocations: 161.7 kB / 425.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.952e-05/0.3363, allocations: 31.56 kB / 425.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.713e-05/0.3364, allocations: 34.31 kB / 425.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3364, allocations: 0 / 425.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.3364, allocations: 4 kB / 425.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3364, allocations: 7.922 kB / 425.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004117/0.3369, allocations: 361.3 kB / 426.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3369, allocations: 4 kB / 426.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.893e-05/0.337, allocations: 11.98 kB / 426.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003495/0.3373, allocations: 117.5 kB / 426.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.3373, allocations: 8 kB / 426.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003376/0.3407, allocations: 3.468 MB / 429.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3407, allocations: 3.938 kB / 429.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008423/0.3416, allocations: 436.1 kB / 430.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.533e-05/0.3417, allocations: 108.8 kB / 430.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.417e-05/0.3417, allocations: 4 kB / 430.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.342, allocations: 23.97 kB / 430.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.387e-05/0.342, allocations: 15.98 kB / 430.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.3421, allocations: 4 kB / 430.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002245/0.3423, allocations: 231.1 kB / 430.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3423, allocations: 0 / 430.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004954/0.3428, allocations: 99.69 kB / 430.7 MB, free: 10.52 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/0.3439, allocations: 0.9712 MB / 431.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.345, allocations: 0.5034 MB / 432.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.345, allocations: 0 / 432.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004269/0.3454, allocations: 345.7 kB / 432.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.3459, allocations: 60.5 kB / 432.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004858/0.3507, allocations: 3.263 MB / 435.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.3512, allocations: 0.7756 MB / 436.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.3513, allocations: 26.97 kB / 436.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.3515, allocations: 103.4 kB / 436.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3515, allocations: 3.938 kB / 436.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03213/0.3836, allocations: 7.28 MB / 444 MB, free: 13.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.96, allocations: 18.02 kB / 444 MB, free: 13.09 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches