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) 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: translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002076/0.002076, allocations: 113.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002266/0.002265, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.648/2.648, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002217/0.002218, allocations: 63.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.385, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005804/0.3909, allocations: 2.808 MB / 412.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.3927, allocations: 0.6738 MB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.393, allocations: 4 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.3933, allocations: 47.52 kB / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003553/0.3937, allocations: 91.19 kB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.3941, allocations: 83.88 kB / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006627/0.3948, allocations: 386.5 kB / 414 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003153/0.3951, allocations: 118.9 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003326/0.3954, allocations: 147.4 kB / 414.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004104/0.3959, allocations: 163.4 kB / 414.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.396, allocations: 32 kB / 414.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.3961, allocations: 40 kB / 414.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.3962, allocations: 79.67 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002748/0.3965, allocations: 159.2 kB / 414.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006423/0.3972, allocations: 371.8 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.061e-05/0.3972, allocations: 4 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3972, allocations: 3.938 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.3973, allocations: 0 / 415.1 MB, free: 12.39 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.002042/0.3993, allocations: 0.6575 MB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3994, allocations: 8.031 kB / 415.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.3995, allocations: 36.56 kB / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.4001, allocations: 272.6 kB / 416.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.4001, allocations: 24.94 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.879e-05/0.4002, allocations: 24.38 kB / 416.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.4012, allocations: 303.6 kB / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.4013, allocations: 7.984 kB / 416.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.4013, allocations: 8 kB / 416.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.4014, allocations: 8 kB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.4026, allocations: 245.6 kB / 416.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.4052, allocations: 1.085 MB / 417.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.4065, allocations: 218.6 kB / 418 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004906/0.407, allocations: 88.78 kB / 418.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.4071, allocations: 3.938 kB / 418.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007081/0.4078, allocations: 165.9 kB / 418.2 MB, free: 9.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.675e-06/0.4078, allocations: 0 / 418.2 MB, free: 9.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.003257/0.4111, allocations: 0.5105 MB / 418.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/0.4112, allocations: 110.8 kB / 418.9 MB, free: 8.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/0.4117, allocations: 286.6 kB / 419.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.4117, allocations: 33.64 kB / 419.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.4119, allocations: 199.5 kB / 419.4 MB, free: 7.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.43e-05/0.412, allocations: 39.45 kB / 419.4 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.4122, allocations: 45.94 kB / 419.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.4123, allocations: 338.8 kB / 419.8 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005372/0.4129, allocations: 96.16 kB / 419.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006201/0.4135, allocations: 198.1 kB / 420.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.4146, allocations: 312.9 kB / 420.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.4147, allocations: 3.938 kB / 420.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001955/0.4166, allocations: 419.7 kB / 420.8 MB, free: 6.281 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/0.4167, allocations: 37.7 kB / 420.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4167, allocations: 7.984 kB / 420.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000497/0.4172, allocations: 72.84 kB / 420.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003293/0.4176, allocations: 51.89 kB / 421 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007767/0.4253, allocations: 1.712 MB / 422.7 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006118/0.426, allocations: 55.72 kB / 422.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/0.4261, allocations: 15.98 kB / 422.7 MB, free: 4.184 MB / 334.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.0002521/0.4263, allocations: 145.7 kB / 422.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.4264, allocations: 19.72 kB / 422.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.545e-05/0.4265, allocations: 33.7 kB / 422.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4265, allocations: 0 / 422.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4265, allocations: 4 kB / 422.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4266, allocations: 0 / 422.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004274/0.427, allocations: 305.3 kB / 423.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.427, allocations: 0 / 423.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.4272, allocations: 15.98 kB / 423.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/0.4277, allocations: 72.8 kB / 423.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.4277, allocations: 3.938 kB / 423.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003301/0.431, allocations: 1.7 MB / 425 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.431, allocations: 3.984 kB / 425 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.4326, allocations: 309.5 kB / 425.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.4328, allocations: 112.8 kB / 425.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.4329, allocations: 11.94 kB / 425.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003875/0.4333, allocations: 27.95 kB / 425.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.4334, allocations: 23.97 kB / 425.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.4335, allocations: 15.92 kB / 425.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003252/0.4338, allocations: 201.9 kB / 425.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4338, allocations: 0 / 425.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007005/0.4345, allocations: 79.84 kB / 425.8 MB, free: 0.8789 MB / 334.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.0002044/0.4348, allocations: 103.2 kB / 425.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.4363, allocations: 409.7 kB / 426.3 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.4363, allocations: 0 / 426.3 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006867/0.437, allocations: 227.4 kB / 426.5 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004805/0.4375, allocations: 40.98 kB / 426.6 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.439, allocations: 497.8 kB / 427 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004494/0.4435, allocations: 0.748 MB / 427.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.4437, allocations: 27.38 kB / 427.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4437, allocations: 0 / 427.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Templates: time 0.00982/0.4536, allocations: 4.452 MB / 432.3 MB, free: 10.31 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches