Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 108.7 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 207.9 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.471/1.471, allocations: 230.4 MB / 251.1 MB, free: 8.504 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 71.83 kB / 369 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3004, allocations: 53.31 MB / 422.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004209/0.3046, allocations: 2.832 MB / 425.1 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.306, allocations: 0.6777 MB / 425.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.3061, allocations: 4 kB / 425.8 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.3063, allocations: 51.5 kB / 425.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.3065, allocations: 91.19 kB / 425.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.3068, allocations: 91.88 kB / 426 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004397/0.3072, allocations: 374.5 kB / 426.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.3074, allocations: 86.95 kB / 426.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.3076, allocations: 147.4 kB / 426.6 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.3078, allocations: 163.3 kB / 426.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-05/0.3079, allocations: 32 kB / 426.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.485e-05/0.3079, allocations: 36 kB / 426.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.842e-05/0.308, allocations: 79.73 kB / 426.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.3082, allocations: 155.3 kB / 427.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004293/0.3086, allocations: 382 kB / 427.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3086, allocations: 4 kB / 427.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3086, allocations: 0 / 427.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.3086, allocations: 0 / 427.5 MB, free: 2.656 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.001502/0.3101, allocations: 0.6534 MB / 428.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3102, allocations: 12.03 kB / 428.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.493e-05/0.3103, allocations: 36.7 kB / 428.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.3107, allocations: 276.8 kB / 428.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.3107, allocations: 16.94 kB / 428.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.3108, allocations: 24.38 kB / 428.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000704/0.3115, allocations: 307.6 kB / 428.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3115, allocations: 0 / 428.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.3115, allocations: 15.94 kB / 428.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/0.3116, allocations: 4 kB / 428.8 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007776/0.3123, allocations: 257.5 kB / 429 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.3142, allocations: 1.086 MB / 430.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007586/0.3149, allocations: 206.6 kB / 430.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002913/0.3152, allocations: 88.8 kB / 430.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.614e-05/0.3152, allocations: 7.984 kB / 430.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004657/0.3157, allocations: 157.9 kB / 430.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.3157, allocations: 0 / 430.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.002069/0.3178, allocations: 0.5184 MB / 431.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.3179, allocations: 110.8 kB / 431.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003219/0.3182, allocations: 286.6 kB / 431.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.3182, allocations: 29.64 kB / 431.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.3184, allocations: 204 kB / 431.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.3184, allocations: 39.69 kB / 431.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/0.3185, allocations: 49.89 kB / 431.8 MB, free: 14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.3187, allocations: 338.8 kB / 432.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003132/0.319, allocations: 92.16 kB / 432.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000392/0.3194, allocations: 202.1 kB / 432.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006929/0.3201, allocations: 308.3 kB / 432.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3201, allocations: 3.938 kB / 432.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001212/0.3213, allocations: 423.9 kB / 433.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.8e-05/0.3213, allocations: 37.7 kB / 433.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.3213, allocations: 7.938 kB / 433.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003513/0.3217, allocations: 72.73 kB / 433.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.3219, allocations: 51.94 kB / 433.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002635/0.3245, allocations: 1.712 MB / 435 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003654/0.3249, allocations: 55.81 kB / 435.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.3249, allocations: 12 kB / 435.1 MB, free: 10.45 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.0001989/0.3251, allocations: 149.6 kB / 435.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-05/0.3252, allocations: 27.81 kB / 435.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.198e-05/0.3252, allocations: 29.7 kB / 435.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3252, allocations: 0 / 435.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3252, allocations: 0 / 435.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.3252, allocations: 0 / 435.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004177/0.3257, allocations: 309.4 kB / 435.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3257, allocations: 0 / 435.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.3258, allocations: 15.98 kB / 435.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000344/0.3261, allocations: 68.8 kB / 435.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3261, allocations: 4 kB / 435.7 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002392/0.3285, allocations: 1.701 MB / 437.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3285, allocations: 0 / 437.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009549/0.3295, allocations: 314 kB / 437.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.3296, allocations: 112.9 kB / 437.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.733e-05/0.3296, allocations: 11.94 kB / 437.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.3299, allocations: 27.95 kB / 437.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.539e-05/0.33, allocations: 23.97 kB / 437.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.33, allocations: 7.938 kB / 437.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.3302, allocations: 205.9 kB / 438.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3302, allocations: 0 / 438.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003632/0.3306, allocations: 79.89 kB / 438.1 MB, free: 7.148 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.0001495/0.3307, allocations: 104.5 kB / 438.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.3318, allocations: 402 kB / 438.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3318, allocations: 0 / 438.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005322/0.3323, allocations: 235 kB / 438.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.3326, allocations: 40.88 kB / 438.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.3337, allocations: 463.6 kB / 439.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.334, allocations: 0.7558 MB / 440.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.817e-05/0.3341, allocations: 30.22 kB / 440.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.752e-05/0.3342, allocations: 19.44 kB / 440.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3342, allocations: 0 / 440.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of Templates: time 0.009409/0.3436, allocations: 4.324 MB / 444.5 MB, free: 0.7344 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches