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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001367/0.001367, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 230.5 MB / 257.4 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 64.03 kB / 377.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2734, allocations: 53.41 MB / 431.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004145/0.2776, allocations: 2.638 MB / 433.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.2789, allocations: 0.6466 MB / 434.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.279, allocations: 4 kB / 434.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.2792, allocations: 47.5 kB / 434.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.2794, allocations: 99.19 kB / 434.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.2796, allocations: 75.91 kB / 434.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004323/0.2801, allocations: 382.5 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.2803, allocations: 88.98 kB / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.2804, allocations: 151.4 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.2806, allocations: 135.4 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.134e-05/0.2807, allocations: 36 kB / 435.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.493e-05/0.2808, allocations: 32 kB / 435.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.873e-05/0.2808, allocations: 79.7 kB / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.281, allocations: 143.4 kB / 435.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004466/0.2815, allocations: 382.5 kB / 436.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2815, allocations: 0 / 436.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.2815, allocations: 0 / 436.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.2815, allocations: 0 / 436.1 MB, free: 1.641 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.001358/0.2828, allocations: 0.5897 MB / 436.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.2829, allocations: 8.031 kB / 436.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.111e-05/0.2829, allocations: 58.73 kB / 436.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.283, allocations: 36.7 kB / 436.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.2834, allocations: 215 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.2835, allocations: 24.86 kB / 437 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.2835, allocations: 32.31 kB / 437 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007172/0.2842, allocations: 350.1 kB / 437.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.2842, allocations: 0 / 437.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.2843, allocations: 8 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.2843, allocations: 11.94 kB / 437.4 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008172/0.2851, allocations: 253.5 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.2869, allocations: 0.9808 MB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008025/0.2877, allocations: 210.5 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.288, allocations: 80.8 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.288, allocations: 7.984 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005006/0.2885, allocations: 217.3 kB / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.2885, allocations: 0 / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.002119/0.2907, allocations: 438.1 kB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.183e-05/0.2908, allocations: 114.7 kB / 439.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.2911, allocations: 285.8 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.2911, allocations: 33.7 kB / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.2913, allocations: 208 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.2914, allocations: 39.69 kB / 440.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2915, allocations: 53.89 kB / 440.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2916, allocations: 334.8 kB / 440.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.292, allocations: 117.9 kB / 440.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000465/0.2925, allocations: 283.9 kB / 441 MB, free: 12.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007205/0.2932, allocations: 309 kB / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2932, allocations: 0 / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001269/0.2944, allocations: 453.6 kB / 441.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.392e-05/0.2945, allocations: 33.7 kB / 441.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.2945, allocations: 11.88 kB / 441.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003569/0.2949, allocations: 72.89 kB / 441.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.2951, allocations: 51.91 kB / 441.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002564/0.2976, allocations: 1.6 MB / 443.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003737/0.298, allocations: 55.73 kB / 443.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.298, allocations: 12 kB / 443.6 MB, free: 9.578 MB / 350.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.0001823/0.2982, allocations: 153.7 kB / 443.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.289e-05/0.2983, allocations: 23.86 kB / 443.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/0.2983, allocations: 25.7 kB / 443.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2983, allocations: 4 kB / 443.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.2983, allocations: 0 / 443.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2983, allocations: 0 / 443.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.2986, allocations: 244.5 kB / 444 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.2986, allocations: 0 / 444 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.2988, allocations: 19.97 kB / 444 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002701/0.299, allocations: 76.73 kB / 444.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.2991, allocations: 0 / 444.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.3014, allocations: 1.585 MB / 445.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3014, allocations: 4.031 kB / 445.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.3024, allocations: 317.5 kB / 446 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.437e-05/0.3025, allocations: 31.84 kB / 446 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.3025, allocations: 7.984 kB / 446 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.3028, allocations: 35.91 kB / 446.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.679e-05/0.3029, allocations: 19.97 kB / 446.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.3029, allocations: 7.922 kB / 446.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002148/0.3031, allocations: 205.2 kB / 446.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3031, allocations: 0 / 446.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.3035, allocations: 75.89 kB / 446.4 MB, free: 6.574 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 (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.001374/0.3048, allocations: 0.8544 MB / 447.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.3059, allocations: 435.4 kB / 447.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3059, allocations: 0.8125 kB / 447.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004828/0.3064, allocations: 222.6 kB / 447.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.3067, allocations: 37.39 kB / 447.9 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005611/0.3123, allocations: 3.123 MB / 451 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.3124, allocations: 142.9 kB / 451.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.3125, allocations: 26.28 kB / 451.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.3126, allocations: 75.41 kB / 451.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3126, allocations: 0 / 451.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05505/0.3677, allocations: 7.462 MB / 458.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.85, allocations: 10.31 kB / 458.7 MB, free: 10.09 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.222784822806716]