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.00133/0.00133, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.4 MB, free: 9.145 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 67.98 kB / 306.4 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1215, allocations: 50.54 MB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.006267/0.1278, allocations: 2.989 MB / 360 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.1304, allocations: 0.748 MB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004652/0.1309, allocations: 4 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.1313, allocations: 39.69 kB / 360.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005565/0.1319, allocations: 87.38 kB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.1325, allocations: 103.8 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007567/0.1333, allocations: 414.4 kB / 361.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.1336, allocations: 131.2 kB / 361.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003326/0.134, allocations: 159.4 kB / 361.6 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003313/0.1343, allocations: 175.2 kB / 361.8 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.1344, allocations: 40 kB / 361.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.1345, allocations: 40 kB / 361.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.1346, allocations: 79.69 kB / 362 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000289/0.1349, allocations: 171.2 kB / 362.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005925/0.1355, allocations: 458.7 kB / 362.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.1356, allocations: 4 kB / 362.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.1356, allocations: 0 / 362.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.1356, allocations: 0 / 362.6 MB, free: 8.543 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.001747/0.1373, allocations: 0.6691 MB / 363.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.1374, allocations: 8.031 kB / 363.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.1375, allocations: 44.55 kB / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.138, allocations: 299.6 kB / 363.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.1381, allocations: 20.92 kB / 363.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.991e-05/0.1381, allocations: 24.38 kB / 363.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008139/0.1389, allocations: 335.9 kB / 364 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.139, allocations: 0 / 364 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.139, allocations: 12 kB / 364 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.139, allocations: 4 kB / 364 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000813/0.1398, allocations: 282.1 kB / 364.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.142, allocations: 1.15 MB / 365.4 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008261/0.1428, allocations: 254.5 kB / 365.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003366/0.1432, allocations: 104.8 kB / 365.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.1432, allocations: 3.984 kB / 365.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005993/0.1438, allocations: 185.9 kB / 366 MB, free: 4.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 6.452e-06/0.1438, allocations: 0 / 366 MB, free: 4.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002284/0.1461, allocations: 0.655 MB / 366.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.1462, allocations: 114.8 kB / 366.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003155/0.1465, allocations: 286.5 kB / 367 MB, free: 3.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1466, allocations: 33.69 kB / 367 MB, free: 3.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.1467, allocations: 191.7 kB / 367.2 MB, free: 3.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.04e-05/0.1468, allocations: 47.44 kB / 367.3 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.1469, allocations: 53.84 kB / 367.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1471, allocations: 338.8 kB / 367.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004156/0.1475, allocations: 100.6 kB / 367.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005493/0.1481, allocations: 208.9 kB / 368 MB, free: 2.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.1488, allocations: 319.7 kB / 368.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1488, allocations: 4 kB / 368.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001246/0.15, allocations: 470.4 kB / 368.7 MB, free: 1.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.003e-05/0.1501, allocations: 33.77 kB / 368.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.1502, allocations: 4 kB / 368.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003962/0.1506, allocations: 88.73 kB / 368.9 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.1508, allocations: 43.97 kB / 368.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2075/0.3583, allocations: 1.998 MB / 370.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.3588, allocations: 52.95 kB / 370.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.3589, allocations: 13.02 kB / 371 MB, free: 19.14 MB / 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.0002032/0.3591, allocations: 151 kB / 371.1 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.312e-05/0.3591, allocations: 24.66 kB / 371.1 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.627e-05/0.3592, allocations: 27.78 kB / 371.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.3592, allocations: 3.953 kB / 371.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.3592, allocations: 0 / 371.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3592, allocations: 4.922 kB / 371.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003728/0.3596, allocations: 318.2 kB / 371.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.3596, allocations: 0.5625 kB / 371.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.3598, allocations: 25.44 kB / 371.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003401/0.3602, allocations: 82.59 kB / 371.6 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3602, allocations: 1.406 kB / 371.6 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/0.3624, allocations: 1.812 MB / 373.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3624, allocations: 0.6562 kB / 373.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.3636, allocations: 371.9 kB / 373.8 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.134e-05/0.3637, allocations: 102.7 kB / 373.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.673e-05/0.3637, allocations: 10.31 kB / 373.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.364, allocations: 29.42 kB / 373.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3641, allocations: 21.97 kB / 373.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.3641, allocations: 7.031 kB / 373.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002845/0.3644, allocations: 203.9 kB / 374.1 MB, free: 17.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3644, allocations: 0 / 374.1 MB, free: 17.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.365, allocations: 84.02 kB / 374.2 MB, free: 17.25 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.0001957/0.3652, allocations: 105.7 kB / 374.3 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.3665, allocations: 440.8 kB / 374.7 MB, free: 16.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3665, allocations: 0 / 374.7 MB, free: 16.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005048/0.367, allocations: 235.2 kB / 375 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.3674, allocations: 51.81 kB / 375 MB, free: 16.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.3687, allocations: 0.5813 MB / 375.6 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.3689, allocations: 0.7569 MB / 376.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.3691, allocations: 29.23 kB / 376.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.54e-05/0.3692, allocations: 24.86 kB / 376.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3692, allocations: 4 kB / 376.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01044/0.3796, allocations: 3.998 MB / 380.4 MB, free: 15.63 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/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