Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001986/0.001986, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00268/0.00268, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 64.09 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3198, allocations: 50.56 MB / 409.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004324/0.3242, allocations: 2.937 MB / 412.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.3256, allocations: 0.7596 MB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.3258, allocations: 4 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.326, allocations: 47.52 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.3262, allocations: 107.2 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.3266, allocations: 119.8 kB / 413.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004078/0.327, allocations: 414.4 kB / 413.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002731/0.3273, allocations: 139.2 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.3275, allocations: 155.4 kB / 414 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.3277, allocations: 175.2 kB / 414.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.83e-05/0.3278, allocations: 40 kB / 414.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.619e-05/0.3278, allocations: 40 kB / 414.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.527e-05/0.3279, allocations: 79.69 kB / 414.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.3281, allocations: 171.2 kB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004374/0.3285, allocations: 455.6 kB / 414.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3286, allocations: 4 kB / 414.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3286, allocations: 0 / 414.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.3286, allocations: 0 / 414.9 MB, free: 11.93 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.00129/0.3299, allocations: 0.6692 MB / 415.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3299, allocations: 8.031 kB / 415.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.246e-05/0.33, allocations: 44.47 kB / 415.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.3304, allocations: 303.5 kB / 415.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.3305, allocations: 24.94 kB / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.3305, allocations: 24.38 kB / 416 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007021/0.3312, allocations: 331.9 kB / 416.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.3313, allocations: 0 / 416.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.3313, allocations: 8 kB / 416.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3313, allocations: 8 kB / 416.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000741/0.3321, allocations: 286 kB / 416.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.334, allocations: 1.146 MB / 417.7 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/0.3348, allocations: 250.6 kB / 418 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003108/0.3351, allocations: 100.8 kB / 418.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.3351, allocations: 7.984 kB / 418.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000458/0.3356, allocations: 181.8 kB / 418.3 MB, free: 8.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.864e-06/0.3356, allocations: 0 / 418.3 MB, free: 8.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002222/0.3379, allocations: 0.6668 MB / 418.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.3379, allocations: 106.8 kB / 419 MB, free: 7.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003209/0.3383, allocations: 286.6 kB / 419.3 MB, free: 7.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.3383, allocations: 25.7 kB / 419.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.3385, allocations: 203.6 kB / 419.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/0.3385, allocations: 47.31 kB / 419.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.3386, allocations: 53.84 kB / 419.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3387, allocations: 334.8 kB / 420 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.3391, allocations: 104.6 kB / 420.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.3395, allocations: 212.8 kB / 420.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006901/0.3402, allocations: 311.7 kB / 420.6 MB, free: 5.859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3402, allocations: 0 / 420.6 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0012/0.3414, allocations: 471.6 kB / 421 MB, free: 5.383 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.3415, allocations: 33.7 kB / 421.1 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.3415, allocations: 4 kB / 421.1 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003853/0.3419, allocations: 88.86 kB / 421.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.3421, allocations: 47.89 kB / 421.2 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002583/0.3447, allocations: 1.994 MB / 423.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.345, allocations: 51.88 kB / 423.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.3451, allocations: 8 kB / 423.3 MB, free: 3.012 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001819/0.3453, allocations: 157.6 kB / 423.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.809e-05/0.3453, allocations: 23.72 kB / 423.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.582e-05/0.3454, allocations: 29.83 kB / 423.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3454, allocations: 0 / 423.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.3454, allocations: 0 / 423.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3454, allocations: 0 / 423.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002946/0.3457, allocations: 333.3 kB / 423.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3457, allocations: 0 / 423.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.3458, allocations: 23.97 kB / 423.8 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002687/0.3461, allocations: 80.8 kB / 423.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.3461, allocations: 4 kB / 423.9 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.3484, allocations: 1.812 MB / 425.7 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3485, allocations: 0 / 425.7 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.3495, allocations: 373 kB / 426.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.568e-05/0.3496, allocations: 100.8 kB / 426.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.3497, allocations: 4 kB / 426.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.3499, allocations: 31.95 kB / 426.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.934e-05/0.35, allocations: 23.91 kB / 426.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.35, allocations: 8 kB / 426.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.3502, allocations: 205.9 kB / 426.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3502, allocations: 0 / 426.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003819/0.3506, allocations: 75.84 kB / 426.5 MB, free: 15.5 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001645/0.3508, allocations: 107.2 kB / 426.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.3518, allocations: 437.6 kB / 427 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3518, allocations: 3.938 kB / 427 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.3523, allocations: 235.2 kB / 427.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.3526, allocations: 47.19 kB / 427.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.3536, allocations: 488.1 kB / 427.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.354, allocations: 0.7558 MB / 428.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.813e-05/0.3541, allocations: 26.28 kB / 428.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.929e-05/0.3541, allocations: 23.42 kB / 428.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3541, allocations: 0 / 428.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of Templates: time 0.008385/0.3625, allocations: 4.209 MB / 432.8 MB, free: 9.148 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches