Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.00159/0.00159, allocations: 109.4 kB / 17.73 MB, free: 5.34 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.002785/0.002785, allocations: 180.1 kB / 18.66 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 51.94 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1413, allocations: 46.61 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004668/0.146, allocations: 3.179 MB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.1479, allocations: 0.9982 MB / 379.3 MB, free: 364 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.1482, allocations: 4 kB / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002008/0.1484, allocations: 59.36 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004004/0.1488, allocations: 127 kB / 379.5 MB, free: 172 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.1491, allocations: 155.5 kB / 379.7 MB, free: 16 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2618/0.411, allocations: 489.5 kB / 380.1 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.4114, allocations: 136.3 kB / 380.3 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003584/0.4118, allocations: 184.1 kB / 380.5 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.4121, allocations: 214.2 kB / 380.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.461e-05/0.4121, allocations: 39.84 kB / 380.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002357/0.4124, allocations: 73.33 kB / 380.8 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.4125, allocations: 100.6 kB / 380.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.4127, allocations: 210.3 kB / 381.1 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007133/0.4134, allocations: 0.4972 MB / 381.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4135, allocations: 0.5 kB / 381.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4135, allocations: 0 / 381.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.4135, allocations: 0.5 kB / 381.6 MB, free: 9.613 MB / 318.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.00165/0.4152, allocations: 0.7324 MB / 382.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/0.4152, allocations: 11.45 kB / 382.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.4153, allocations: 47.31 kB / 382.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.4158, allocations: 304.5 kB / 382.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.204e-05/0.4159, allocations: 24.31 kB / 382.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.416, allocations: 40.91 kB / 382.7 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007429/0.4167, allocations: 353.4 kB / 383.1 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.4168, allocations: 7.938 kB / 383.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.796e-05/0.4168, allocations: 12.12 kB / 383.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.4168, allocations: 8.672 kB / 383.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.4174, allocations: 231.7 kB / 383.3 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002079/0.4195, allocations: 1.168 MB / 384.5 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006879/0.4202, allocations: 277.6 kB / 384.8 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.4207, allocations: 212.9 kB / 385 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005199/0.4213, allocations: 1.119 MB / 386.1 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.4213, allocations: 42.88 kB / 386.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.724e-06/0.4213, allocations: 0 / 386.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.001342/0.4226, allocations: 0.5269 MB / 386.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/0.4227, allocations: 81 kB / 386.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004166/0.4231, allocations: 340.4 kB / 387.1 MB, free: 6.309 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.4232, allocations: 32.06 kB / 387.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.4233, allocations: 214 kB / 387.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.53e-05/0.4234, allocations: 99.83 kB / 387.4 MB, free: 6.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.4235, allocations: 70.95 kB / 387.5 MB, free: 5.973 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.4236, allocations: 353.9 kB / 387.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.4239, allocations: 102.3 kB / 387.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.4242, allocations: 188.8 kB / 388.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004891/0.4247, allocations: 289.1 kB / 388.4 MB, free: 5.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.4247, allocations: 3.031 kB / 388.4 MB, free: 5.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008227/0.4255, allocations: 433.6 kB / 388.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.4255, allocations: 6.094 kB / 388.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.4256, allocations: 1.5 kB / 388.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/0.4258, allocations: 68.42 kB / 388.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/0.4262, allocations: 81.31 kB / 389 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.428, allocations: 1.957 MB / 390.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/0.4283, allocations: 39.66 kB / 391 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.4284, allocations: 15.17 kB / 391 MB, free: 3.336 MB / 318.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.0001999/0.4286, allocations: 154.7 kB / 391.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.291e-05/0.4287, allocations: 38.53 kB / 391.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000817/0.4295, allocations: 340.1 kB / 391.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4295, allocations: 2.938 kB / 391.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.4295, allocations: 0.7031 kB / 391.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.4295, allocations: 10.34 kB / 391.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005076/0.43, allocations: 392.7 kB / 391.9 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.43, allocations: 0.6094 kB / 391.9 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.4304, allocations: 52.69 kB / 392 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002203/0.4306, allocations: 59.19 kB / 392 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.4306, allocations: 11.39 kB / 392 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003588/0.431, allocations: 0.6121 MB / 392.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.431, allocations: 0 / 392.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009286/0.432, allocations: 0.521 MB / 393.2 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.4321, allocations: 131.1 kB / 393.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/0.4322, allocations: 7.875 kB / 393.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.4325, allocations: 20.36 kB / 393.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.855e-05/0.4325, allocations: 14.03 kB / 393.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.4326, allocations: 11.53 kB / 393.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003162/0.4329, allocations: 241.1 kB / 393.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4329, allocations: 0 / 393.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000574/0.4335, allocations: 115 kB / 393.7 MB, free: 1.559 MB / 318.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.0002334/0.4337, allocations: 126.4 kB / 393.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009077/0.4346, allocations: 417.6 kB / 394.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4347, allocations: 0 / 394.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.435, allocations: 144.7 kB / 394.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.4354, allocations: 45.31 kB / 394.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.4368, allocations: 0.8606 MB / 395.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.4371, allocations: 0.7977 MB / 396.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000161/0.4373, allocations: 40.34 kB / 396.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.135e-05/0.4374, allocations: 30.62 kB / 396.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.4374, allocations: 0 / 396.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of Templates: time 0.009461/0.4469, allocations: 4.017 MB / 400.2 MB, free: 15.55 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time