Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000909/0.0009091, allocations: 93.31 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.001116/0.001116, allocations: 175.5 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.318/1.318, allocations: 223.3 MB / 242.2 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000224/0.000224, allocations: 8.469 kB / 302.1 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0751/0.07534, allocations: 50.41 MB / 352.5 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.002713/0.07809, allocations: 2.604 MB / 355.1 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009742/0.07908, allocations: 0.713 MB / 355.8 MB, free: 332 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.0792, allocations: 4 kB / 355.8 MB, free: 328 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.07932, allocations: 39.69 kB / 355.9 MB, free: 288 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.0795, allocations: 79.39 kB / 355.9 MB, free: 208 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.07974, allocations: 99.91 kB / 356 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003427/0.08009, allocations: 390.5 kB / 356.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.0803, allocations: 111.7 kB / 356.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.08045, allocations: 135.4 kB / 356.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.08063, allocations: 143.4 kB / 356.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.08068, allocations: 16 kB / 356.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.254e-05/0.08073, allocations: 20 kB / 356.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.058e-05/0.08078, allocations: 51.7 kB / 356.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.08094, allocations: 184.8 kB / 357.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.08122, allocations: 351.2 kB / 357.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.08123, allocations: 4 kB / 357.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08124, allocations: 0 / 357.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.08125, allocations: 0 / 357.4 MB, free: 14.71 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.001117/0.08237, allocations: 0.6381 MB / 358.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.933e-05/0.08241, allocations: 8.031 kB / 358.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.998e-05/0.08249, allocations: 32.56 kB / 358.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/0.0828, allocations: 303.5 kB / 358.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.08284, allocations: 16.94 kB / 358.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/0.08289, allocations: 28.31 kB / 358.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007116/0.0836, allocations: 340 kB / 358.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.08362, allocations: 0 / 358.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.08366, allocations: 15.94 kB / 358.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.08367, allocations: 7.984 kB / 358.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008634/0.08454, allocations: 326 kB / 359.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.08632, allocations: 1.174 MB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008685/0.0872, allocations: 278.6 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003643/0.08758, allocations: 124.8 kB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.08761, allocations: 7.938 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000494/0.08811, allocations: 193.1 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.08812, allocations: 4 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002447/0.09057, allocations: 0.7449 MB / 361.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.09064, allocations: 106.8 kB / 361.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.09092, allocations: 282.7 kB / 362 MB, free: 9.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.09096, allocations: 33.7 kB / 362 MB, free: 9.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.09108, allocations: 199.5 kB / 362.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.579e-05/0.09112, allocations: 43.44 kB / 362.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.235e-05/0.09117, allocations: 25.7 kB / 362.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.09128, allocations: 338.8 kB / 362.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003777/0.09166, allocations: 120.2 kB / 362.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004327/0.0921, allocations: 226.1 kB / 363 MB, free: 8.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007677/0.09288, allocations: 355.5 kB / 363.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.09289, allocations: 0 / 363.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001311/0.09421, allocations: 0.5076 MB / 363.8 MB, free: 7.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.09426, allocations: 37.69 kB / 363.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.09427, allocations: 3.938 kB / 363.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003529/0.09463, allocations: 100.9 kB / 364 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/0.09486, allocations: 55.91 kB / 364 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/0.09755, allocations: 1.912 MB / 365.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003461/0.0979, allocations: 71.7 kB / 366 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.09794, allocations: 8 kB / 366 MB, free: 5.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (24): * Single equations (assignments): 22 * 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.0001363/0.09808, allocations: 149.7 kB / 366.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.09812, allocations: 23.72 kB / 366.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.834e-05/0.09818, allocations: 33.83 kB / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.09818, allocations: 0 / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.09819, allocations: 0 / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.0982, allocations: 0 / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.09848, allocations: 337.2 kB / 366.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.09849, allocations: 0 / 366.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.09864, allocations: 23.98 kB / 366.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002841/0.09893, allocations: 88.92 kB / 366.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.09896, allocations: 11.98 kB / 366.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002242/0.1012, allocations: 1.815 MB / 368.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1012, allocations: 3.984 kB / 368.5 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1024, allocations: 413.4 kB / 368.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.1024, allocations: 100.8 kB / 369 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.1025, allocations: 4 kB / 369 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.1028, allocations: 47.95 kB / 369 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.108e-05/0.1028, allocations: 19.92 kB / 369 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.1029, allocations: 0 / 369 MB, free: 2.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.103, allocations: 206 kB / 369.3 MB, free: 2.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1031, allocations: 0 / 369.3 MB, free: 2.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.1035, allocations: 79.78 kB / 369.3 MB, free: 2.012 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.0001086/0.1036, allocations: 115.2 kB / 369.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.1049, allocations: 0.5325 MB / 370 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1049, allocations: 4 kB / 370 MB, free: 1.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005084/0.1054, allocations: 250.7 kB / 370.2 MB, free: 1.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.1057, allocations: 48.22 kB / 370.3 MB, free: 1.027 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1231/0.2288, allocations: 1.145 MB / 371.4 MB, free: 24.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.2291, allocations: 0.756 MB / 372.2 MB, free: 24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.654e-05/0.2292, allocations: 24.61 kB / 372.2 MB, free: 23.99 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2292, allocations: 0 / 372.2 MB, free: 23.99 MB / 302.1 MB Notification: Performance of Templates: time 0.006731/0.2359, allocations: 4.723 MB / 376.9 MB, free: 23.81 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches