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.001592/0.001592, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001871/0.001872, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.9 MB, free: 9.031 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 64.61 kB / 306.9 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09566, allocations: 50.53 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004129/0.09983, allocations: 2.992 MB / 360.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.1013, allocations: 0.7597 MB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002429/0.1016, allocations: 4 kB / 361.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.1018, allocations: 39.69 kB / 361.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.102, allocations: 91.36 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.1024, allocations: 95.92 kB / 361.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004147/0.1028, allocations: 390.4 kB / 361.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.103, allocations: 103.8 kB / 361.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.1033, allocations: 143.3 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.1035, allocations: 155.3 kB / 362.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.1e-05/0.1036, allocations: 28 kB / 362.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.975e-05/0.1036, allocations: 20 kB / 362.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.324e-05/0.1037, allocations: 63.69 kB / 362.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.1039, allocations: 155.2 kB / 362.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/0.1042, allocations: 359.3 kB / 362.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1042, allocations: 0 / 362.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1042, allocations: 0 / 362.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.1042, allocations: 0 / 362.8 MB, free: 8.883 MB / 302.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.001306/0.1055, allocations: 0.6886 MB / 363.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1055, allocations: 8.031 kB / 363.5 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.887e-05/0.1056, allocations: 32.56 kB / 363.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.106, allocations: 299.5 kB / 363.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.106, allocations: 24.94 kB / 363.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.01e-05/0.1061, allocations: 24.38 kB / 363.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007557/0.1068, allocations: 327.9 kB / 364.2 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1069, allocations: 0 / 364.2 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.419e-05/0.1069, allocations: 11.98 kB / 364.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.1069, allocations: 12 kB / 364.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008197/0.1077, allocations: 286 kB / 364.5 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.1097, allocations: 1.154 MB / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/0.1105, allocations: 242.6 kB / 365.9 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.1108, allocations: 116.7 kB / 366 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.1109, allocations: 0 / 366 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.1114, allocations: 177.5 kB / 366.2 MB, free: 5.289 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.233e-06/0.1114, allocations: 4.219 kB / 366.2 MB, free: 5.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002169/0.1136, allocations: 0.6628 MB / 366.8 MB, free: 4.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.1136, allocations: 106.8 kB / 367 MB, free: 4.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000295/0.1139, allocations: 290.6 kB / 367.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.114, allocations: 29.7 kB / 367.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1141, allocations: 199.6 kB / 367.5 MB, free: 3.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.642e-05/0.1141, allocations: 43.44 kB / 367.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.1142, allocations: 53.84 kB / 367.6 MB, free: 3.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1144, allocations: 330.8 kB / 367.9 MB, free: 3.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.1147, allocations: 108.4 kB / 368 MB, free: 3.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003882/0.1151, allocations: 213.5 kB / 368.2 MB, free: 3.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.1158, allocations: 299.8 kB / 368.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1158, allocations: 0 / 368.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001226/0.117, allocations: 486.2 kB / 369 MB, free: 2.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.1171, allocations: 37.7 kB / 369 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.1171, allocations: 4 kB / 369 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003687/0.1175, allocations: 84.86 kB / 369.1 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.1177, allocations: 47.91 kB / 369.1 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002433/0.1202, allocations: 1.799 MB / 370.9 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003549/0.1205, allocations: 59.77 kB / 371 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.1206, allocations: 11.98 kB / 371 MB, free: 132 kB / 302.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.1904/0.311, allocations: 154.4 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.143e-05/0.3111, allocations: 22.69 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.342e-05/0.3112, allocations: 26.22 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3112, allocations: 1 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3112, allocations: 0.9062 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3112, allocations: 4.594 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.3116, allocations: 322 kB / 371.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3116, allocations: 0.9688 kB / 371.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.3118, allocations: 26.11 kB / 371.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003258/0.3121, allocations: 83.06 kB / 371.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.3122, allocations: 1.812 kB / 371.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00196/0.3141, allocations: 1.683 MB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3142, allocations: 1.094 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.3152, allocations: 365.2 kB / 373.7 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.956e-05/0.3153, allocations: 99.94 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.936e-05/0.3153, allocations: 6.547 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.3156, allocations: 39.78 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.535e-05/0.3157, allocations: 26.62 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.3157, allocations: 4.078 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002221/0.3159, allocations: 203.4 kB / 374 MB, free: 18.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3159, allocations: 0 / 374 MB, free: 18.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004085/0.3164, allocations: 80.31 kB / 374.1 MB, free: 18.28 MB / 302.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.0001318/0.3165, allocations: 105.2 kB / 374.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009839/0.3175, allocations: 430.4 kB / 374.6 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3175, allocations: 0 / 374.6 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004709/0.318, allocations: 236.5 kB / 374.9 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.3184, allocations: 48.44 kB / 374.9 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.3194, allocations: 0.6005 MB / 375.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.3196, allocations: 0.7583 MB / 376.3 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.995e-05/0.3197, allocations: 21.25 kB / 376.3 MB, free: 16.83 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3197, allocations: 0 / 376.3 MB, free: 16.83 MB / 302.1 MB Notification: Performance of Templates: time 0.008318/0.3281, allocations: 4.74 MB / 381 MB, free: 16.52 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/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