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.00142/0.00142, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 64.12 kB / 358.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2846, allocations: 50.54 MB / 408.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004861/0.2895, allocations: 3.391 MB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.291, allocations: 0.8532 MB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.2912, allocations: 11.94 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.2914, allocations: 71.36 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.2917, allocations: 119 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.292, allocations: 143.8 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005097/0.2925, allocations: 0.498 MB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.2928, allocations: 169 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002834/0.2931, allocations: 191.4 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.2934, allocations: 207.1 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.47e-05/0.2934, allocations: 48 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.2936, allocations: 52 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.522e-05/0.2937, allocations: 99.62 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.2939, allocations: 226.9 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005769/0.2945, allocations: 0.5633 MB / 415.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2945, allocations: 0 / 415.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2945, allocations: 0 / 415.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2945, allocations: 0 / 415.5 MB, free: 10.8 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.001183/0.2957, allocations: 0.7131 MB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.2957, allocations: 12.03 kB / 416.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.517e-05/0.2958, allocations: 70.72 kB / 416.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.296, allocations: 64.64 kB / 416.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004776/0.2965, allocations: 324.8 kB / 416.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.2965, allocations: 29.38 kB / 416.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.2966, allocations: 31.94 kB / 416.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006997/0.2973, allocations: 398.1 kB / 417.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2973, allocations: 0 / 417.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.436e-05/0.2974, allocations: 19.94 kB / 417.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.2974, allocations: 8 kB / 417.1 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006376/0.298, allocations: 299.8 kB / 417.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.3003, allocations: 1.44 MB / 418.9 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006165/0.3009, allocations: 238.8 kB / 419.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.3011, allocations: 88.83 kB / 419.2 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.3011, allocations: 4 kB / 419.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.3012, allocations: 42.48 kB / 419.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.312e-06/0.3012, allocations: 0 / 419.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002276/0.3035, allocations: 0.755 MB / 420 MB, free: 6.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.3035, allocations: 59.34 kB / 420 MB, free: 5.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.3039, allocations: 312.5 kB / 420.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.3039, allocations: 29.7 kB / 420.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.3041, allocations: 236.1 kB / 420.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.742e-05/0.3041, allocations: 59.53 kB / 420.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.3042, allocations: 45.7 kB / 420.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3044, allocations: 338.8 kB / 421 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.3046, allocations: 83.95 kB / 421.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.3049, allocations: 169.3 kB / 421.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004616/0.3053, allocations: 243.6 kB / 421.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.3053, allocations: 0 / 421.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001023/0.3064, allocations: 430.9 kB / 421.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.3064, allocations: 10.34 kB / 422 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.3064, allocations: 3.984 kB / 422 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004683/0.3069, allocations: 117.7 kB / 422.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.3071, allocations: 39.92 kB / 422.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/0.3113, allocations: 3.564 MB / 425.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.3116, allocations: 43.83 kB / 425.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.3116, allocations: 8 kB / 425.7 MB, free: 15.87 MB / 350.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.0001766/0.3118, allocations: 149.8 kB / 425.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.041e-05/0.3119, allocations: 35.75 kB / 425.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.382e-05/0.3119, allocations: 30.31 kB / 425.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.3119, allocations: 4 kB / 425.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3119, allocations: 7.938 kB / 425.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3119, allocations: 0 / 425.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004107/0.3124, allocations: 369.3 kB / 426.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3124, allocations: 0 / 426.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.559e-05/0.3125, allocations: 12 kB / 426.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003742/0.3128, allocations: 125.6 kB / 426.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.3129, allocations: 7.938 kB / 426.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003776/0.3166, allocations: 3.464 MB / 429.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3167, allocations: 0 / 429.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.3177, allocations: 439 kB / 430.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.332e-05/0.3178, allocations: 113 kB / 430.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.3178, allocations: 7.984 kB / 430.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.318, allocations: 19.98 kB / 430.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.3181, allocations: 23.97 kB / 430.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.3181, allocations: 4 kB / 430.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002389/0.3184, allocations: 223.1 kB / 430.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3184, allocations: 0 / 430.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005146/0.3189, allocations: 103.8 kB / 430.8 MB, free: 10.38 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.001281/0.3202, allocations: 0.9597 MB / 431.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.3214, allocations: 0.5185 MB / 432.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3214, allocations: 4.062 kB / 432.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004627/0.3219, allocations: 341.2 kB / 432.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.3224, allocations: 52.61 kB / 432.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005289/0.3277, allocations: 3.26 MB / 436 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.3282, allocations: 0.7795 MB / 436.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.3283, allocations: 22.98 kB / 436.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.3285, allocations: 107.3 kB / 436.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3285, allocations: 3.938 kB / 436.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03872/0.3672, allocations: 7.144 MB / 444 MB, free: 13.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.31, allocations: 7.891 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.1.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