Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008986/0.0008986, allocations: 91.41 kB / 17.31 MB, free: 6.535 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.0009739/0.000974, allocations: 176.2 kB / 18.21 MB, free: 5.684 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.284/1.284, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002994, allocations: 7.938 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09308/0.0934, allocations: 50.41 MB / 352.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005628/0.09906, allocations: 4.057 MB / 356.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002477/0.1016, allocations: 1.18 MB / 357.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000403/0.102, allocations: 11.94 kB / 357.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004547/0.1025, allocations: 119.2 kB / 357.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005907/0.1031, allocations: 174.6 kB / 358 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005056/0.1036, allocations: 163.8 kB / 358.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009935/0.1046, allocations: 0.7162 MB / 358.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004891/0.1051, allocations: 235.4 kB / 359.1 MB, free: 13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004083/0.1055, allocations: 242.9 kB / 359.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004554/0.106, allocations: 282.6 kB / 359.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.638e-05/0.1061, allocations: 39.94 kB / 359.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.1062, allocations: 32 kB / 359.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.1064, allocations: 115.4 kB / 359.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003895/0.1068, allocations: 324 kB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006406/0.1074, allocations: 0.5378 MB / 360.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1074, allocations: 0 / 360.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1074, allocations: 0 / 360.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1075, allocations: 0 / 360.7 MB, free: 11.44 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001934/0.1094, allocations: 0.8574 MB / 361.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.1094, allocations: 8.031 kB / 361.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.1096, allocations: 72.09 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006605/0.1103, allocations: 405.9 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.013e-05/0.1104, allocations: 45.69 kB / 362.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.1105, allocations: 56.38 kB / 362.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.1119, allocations: 0.5497 MB / 362.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.1119, allocations: 0 / 362.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.519e-05/0.112, allocations: 28 kB / 362.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/0.1121, allocations: 16 kB / 362.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.1134, allocations: 433 kB / 363.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00407/0.1175, allocations: 1.851 MB / 365 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.1186, allocations: 0.5372 MB / 365.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.1199, allocations: 440.2 kB / 366 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.12, allocations: 8.266 kB / 366 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007266/0.1207, allocations: 302.2 kB / 366.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.285e-06/0.1207, allocations: 0 / 366.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.005842/0.1266, allocations: 1.376 MB / 367.6 MB, free: 4.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1267, allocations: 239.3 kB / 367.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006784/0.1274, allocations: 441.8 kB / 368.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/0.1275, allocations: 33.7 kB / 368.3 MB, free: 3.422 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000265/0.1277, allocations: 312 kB / 368.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.1279, allocations: 138 kB / 368.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.119e-05/0.128, allocations: 45.7 kB / 368.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1282, allocations: 354.8 kB / 369.2 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005214/0.1287, allocations: 161 kB / 369.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006789/0.1294, allocations: 329.6 kB / 369.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.1305, allocations: 451.5 kB / 370.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1305, allocations: 4 kB / 370.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002659/0.1332, allocations: 0.8179 MB / 370.9 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.1332, allocations: 11.94 kB / 370.9 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1333, allocations: 8.062 kB / 370.9 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009359/0.1342, allocations: 218.8 kB / 371.1 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.1346, allocations: 79.84 kB / 371.2 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1876/0.3222, allocations: 2.911 MB / 374.1 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/0.3228, allocations: 91.5 kB / 374.2 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.3228, allocations: 16.31 kB / 374.2 MB, free: 23.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * 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 {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.323, allocations: 181.2 kB / 374.4 MB, free: 23.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.3231, allocations: 54.86 kB / 374.5 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.957e-05/0.3232, allocations: 55.12 kB / 374.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.3232, allocations: 11.16 kB / 374.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.3232, allocations: 1.594 kB / 374.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3232, allocations: 4.547 kB / 374.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/0.3255, allocations: 1.305 MB / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3255, allocations: 0 / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.3257, allocations: 38.83 kB / 375.9 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006084/0.3263, allocations: 222.4 kB / 376.1 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.3263, allocations: 6.797 kB / 376.1 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003645/0.33, allocations: 2.829 MB / 378.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.33, allocations: 2.484 kB / 378.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.3319, allocations: 0.9797 MB / 379.9 MB, free: 20.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.261e-05/0.332, allocations: 125.9 kB / 380 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.981e-05/0.3321, allocations: 16.78 kB / 380.1 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003814/0.3325, allocations: 44.31 kB / 380.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.546e-05/0.3325, allocations: 34.69 kB / 380.1 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.3326, allocations: 13.86 kB / 380.1 MB, free: 20.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003121/0.3329, allocations: 297.3 kB / 380.4 MB, free: 20.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3329, allocations: 0 / 380.4 MB, free: 20.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006046/0.3335, allocations: 190.7 kB / 380.6 MB, free: 20.17 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001045/0.3336, allocations: 106.4 kB / 380.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.3351, allocations: 0.7013 MB / 381.4 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3351, allocations: 2.625 kB / 381.4 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006777/0.3358, allocations: 430 kB / 381.9 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/0.3363, allocations: 82.56 kB / 381.9 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.3378, allocations: 1.199 MB / 383.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.3381, allocations: 0.8643 MB / 384 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.248e-05/0.3382, allocations: 33 kB / 384 MB, free: 18.05 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3382, allocations: 0 / 384 MB, free: 18.05 MB / 302.1 MB Notification: Performance of Templates: time 0.009291/0.3475, allocations: 8.215 MB / 392.2 MB, free: 14.99 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches