Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 108 kB / 16.92 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 42.75 kB / 300.6 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1235, allocations: 49.44 MB / 350 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005412/0.129, allocations: 3.21 MB / 353.3 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.1312, allocations: 0.9701 MB / 354.2 MB, free: 244 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004091/0.1316, allocations: 4 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003007/0.132, allocations: 63.41 kB / 354.3 MB, free: 176 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006728/0.1327, allocations: 125 kB / 354.4 MB, free: 52 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006064/0.1333, allocations: 151.7 kB / 354.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008593/0.1342, allocations: 489.8 kB / 355 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.1345, allocations: 131.1 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004308/0.1349, allocations: 183.4 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004765/0.1354, allocations: 207.1 kB / 355.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1355, allocations: 40 kB / 355.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.1358, allocations: 71.97 kB / 355.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1359, allocations: 99.59 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002692/0.1362, allocations: 211 kB / 356 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007255/0.1369, allocations: 0.4907 MB / 356.5 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.137, allocations: 0 / 356.5 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.137, allocations: 3.938 kB / 356.5 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.167e-05/0.137, allocations: 0 / 356.5 MB, free: 14 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001741/0.1388, allocations: 0.7364 MB / 357.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1388, allocations: 8.031 kB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.139, allocations: 44.47 kB / 357.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004798/0.1394, allocations: 311.3 kB / 357.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.1395, allocations: 25.03 kB / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.1396, allocations: 36.38 kB / 357.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007513/0.1403, allocations: 357.3 kB / 358 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1404, allocations: 4 kB / 358 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.1404, allocations: 16 kB / 358 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.1404, allocations: 8 kB / 358 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005189/0.1409, allocations: 230.5 kB / 358.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.1432, allocations: 1.166 MB / 359.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007158/0.1439, allocations: 283.5 kB / 359.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005174/0.1444, allocations: 212.8 kB / 359.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009314/0.1454, allocations: 1.117 MB / 361 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1454, allocations: 42.8 kB / 361 MB, free: 8.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.316e-06/0.1454, allocations: 0 / 361 MB, free: 8.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001479/0.1469, allocations: 0.5273 MB / 361.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.147, allocations: 85.09 kB / 361.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004395/0.1474, allocations: 328.5 kB / 362 MB, free: 7.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.1475, allocations: 33.7 kB / 362 MB, free: 7.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.1476, allocations: 216.1 kB / 362.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.051e-05/0.1477, allocations: 102.5 kB / 362.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.1479, allocations: 65.98 kB / 362.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.148, allocations: 350.7 kB / 362.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.1483, allocations: 108.7 kB / 362.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.1486, allocations: 181.8 kB / 363 MB, free: 6.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005029/0.1491, allocations: 288 kB / 363.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1491, allocations: 0 / 363.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008397/0.1499, allocations: 433.2 kB / 363.7 MB, free: 6.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.15, allocations: 11.98 kB / 363.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.15, allocations: 0 / 363.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002903/0.1503, allocations: 61.08 kB / 363.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.1506, allocations: 79.89 kB / 363.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/0.1532, allocations: 1.959 MB / 365.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.1536, allocations: 47.55 kB / 365.8 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.1536, allocations: 12 kB / 365.9 MB, free: 3.852 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002238/0.1538, allocations: 160.9 kB / 366 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.506e-05/0.1539, allocations: 35.53 kB / 366 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007679/0.1547, allocations: 334.5 kB / 366.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.1547, allocations: 4 kB / 366.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1548, allocations: 7.922 kB / 366.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1548, allocations: 0 / 366.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005912/0.1554, allocations: 389.2 kB / 366.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.1554, allocations: 4 kB / 366.8 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/0.1557, allocations: 55.89 kB / 366.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/0.156, allocations: 60.81 kB / 366.9 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.156, allocations: 8 kB / 366.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005681/0.1566, allocations: 0.6108 MB / 367.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.1566, allocations: 4 kB / 367.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.1577, allocations: 0.5198 MB / 368 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.1578, allocations: 108.7 kB / 368.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-05/0.1579, allocations: 12 kB / 368.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.1582, allocations: 15.98 kB / 368.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.85e-05/0.1583, allocations: 19.97 kB / 368.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1583, allocations: 4 kB / 368.2 MB, free: 1.387 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003313/0.1586, allocations: 243 kB / 368.4 MB, free: 1.148 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1586, allocations: 192 / 368.4 MB, free: 1.148 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006305/0.1593, allocations: 111.8 kB / 368.5 MB, free: 1.039 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003612/0.1597, allocations: 139 kB / 368.7 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.1607, allocations: 442.1 kB / 369.1 MB, free: 456 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1607, allocations: 0 / 369.1 MB, free: 456 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.1611, allocations: 139.8 kB / 369.2 MB, free: 316 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.1616, allocations: 40.69 kB / 369.3 MB, free: 280 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1866/0.3482, allocations: 0.8585 MB / 370.1 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.3484, allocations: 0.7895 MB / 370.9 MB, free: 24.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.3487, allocations: 36.8 kB / 371 MB, free: 24.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.035e-05/0.3487, allocations: 26.83 kB / 371 MB, free: 24.82 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3488, allocations: 2.781 kB / 371 MB, free: 24.82 MB / 302.1 MB Notification: Performance of Templates: time 0.009343/0.3581, allocations: 3.945 MB / 374.9 MB, free: 24.65 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x Variables in the result:constantVoltage.V,constantVoltage.p.v,constantVoltage.v,constantVoltage1.V,constantVoltage1.p.v,constantVoltage1.v,opAmp.Avcm_val,opAmp.Avd0,opAmp.Avd0_val,opAmp.CMRR,opAmp.Cin,opAmp.I1,opAmp.I2,opAmp.Ib,opAmp.Imaxsi,opAmp.Imaxsi_val,opAmp.Imaxso,opAmp.Imaxso_val,opAmp.Ios,opAmp.Rcm,opAmp.Rdm,opAmp.Rout,opAmp.Ts,opAmp.Vos,opAmp.fp1,opAmp.fp2,opAmp.fp3,opAmp.fp4,opAmp.fz,opAmp.m_supply.v,opAmp.p_supply.v,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.sr_m,opAmp.sr_m_val,opAmp.sr_p,opAmp.sr_p_val,opAmp.v_3,opAmp.v_in,opAmp.v_neg,opAmp.v_pos,opAmp.v_source,opAmp.v_vos,opAmp.vcm,opAmp.vcm_abs,opAmp.vcp,opAmp.vcp_abs,opAmp.x,resistor.R,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor1.R,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor2.R,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,sineVoltage.V,sineVoltage.f,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.f,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time