Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 108.6 kB / 17.06 MB, free: 5.957 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.00178/0.00178, allocations: 200 kB / 18.01 MB, free: 5.035 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.553/1.553, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 51.92 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3803, allocations: 49.43 MB / 400.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.006042/0.3864, allocations: 3.37 MB / 404.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.3884, allocations: 0.7987 MB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.3887, allocations: 4 kB / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002667/0.389, allocations: 71.34 kB / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003522/0.3894, allocations: 126.9 kB / 405.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.3898, allocations: 135.8 kB / 405.3 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.3903, allocations: 498 kB / 405.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003133/0.3906, allocations: 173 kB / 405.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.3909, allocations: 191.3 kB / 406.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.3912, allocations: 203.1 kB / 406.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.407e-05/0.3912, allocations: 52 kB / 406.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.472e-05/0.3913, allocations: 52 kB / 406.4 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.58e-05/0.3914, allocations: 91.69 kB / 406.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.3917, allocations: 222.9 kB / 406.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005721/0.3922, allocations: 0.5579 MB / 407.3 MB, free: 2.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.3922, allocations: 0 / 407.3 MB, free: 2.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3923, allocations: 0 / 407.3 MB, free: 2.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.3923, allocations: 0 / 407.3 MB, free: 2.328 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001292/0.3936, allocations: 0.7019 MB / 408 MB, free: 1.578 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.3936, allocations: 16.02 kB / 408 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.3937, allocations: 40.47 kB / 408 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.3943, allocations: 324.5 kB / 408.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.3943, allocations: 29.38 kB / 408.4 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.593e-05/0.3944, allocations: 32.12 kB / 408.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007975/0.3952, allocations: 402.1 kB / 408.8 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3952, allocations: 0 / 408.8 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.453e-05/0.3953, allocations: 20 kB / 408.8 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.3953, allocations: 8 kB / 408.8 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006312/0.3959, allocations: 295.9 kB / 409.1 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.3982, allocations: 1.432 MB / 410.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006496/0.3989, allocations: 242.7 kB / 410.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.3991, allocations: 96.81 kB / 410.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.3992, allocations: 7.984 kB / 410.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.3992, allocations: 34.56 kB / 410.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.3992, allocations: 3.938 kB / 410.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002348/0.4016, allocations: 0.751 MB / 411.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.4016, allocations: 51.41 kB / 411.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.402, allocations: 315.2 kB / 412 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.4021, allocations: 33.7 kB / 412.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.4023, allocations: 227.6 kB / 412.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.746e-05/0.4023, allocations: 59.19 kB / 412.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.532e-05/0.4024, allocations: 49.7 kB / 412.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.4026, allocations: 338.8 kB / 412.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.4028, allocations: 87.95 kB / 412.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.4031, allocations: 161.3 kB / 413 MB, free: 12.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004645/0.4035, allocations: 241.3 kB / 413.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4035, allocations: 0 / 413.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001034/0.4046, allocations: 433.2 kB / 413.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.4046, allocations: 4 kB / 413.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.4046, allocations: 4 kB / 413.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005012/0.4051, allocations: 117.7 kB / 413.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.4053, allocations: 39.92 kB / 413.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004302/0.4096, allocations: 3.564 MB / 417.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.41, allocations: 31.75 kB / 417.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.691e-05/0.41, allocations: 15.98 kB / 417.4 MB, free: 7.523 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002263/0.4103, allocations: 157.7 kB / 417.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.4103, allocations: 27.66 kB / 417.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.756e-05/0.4104, allocations: 30.3 kB / 417.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4104, allocations: 0 / 417.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.4104, allocations: 4 kB / 417.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4104, allocations: 0 / 417.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.4108, allocations: 381.2 kB / 418 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.4108, allocations: 0 / 418 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.922e-05/0.4109, allocations: 12.12 kB / 418 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003842/0.4113, allocations: 121.6 kB / 418.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.4113, allocations: 3.984 kB / 418.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/0.4156, allocations: 3.463 MB / 421.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4156, allocations: 144 / 421.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.4167, allocations: 443.8 kB / 422 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.4168, allocations: 108.7 kB / 422.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.4169, allocations: 4 kB / 422.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.4171, allocations: 23.98 kB / 422.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.35e-05/0.4172, allocations: 11.98 kB / 422.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.4172, allocations: 7.984 kB / 422.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002704/0.4175, allocations: 222 kB / 422.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4175, allocations: 0 / 422.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005823/0.4181, allocations: 99.78 kB / 422.5 MB, free: 2.051 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001921/0.4183, allocations: 107.7 kB / 422.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.4195, allocations: 0.5089 MB / 423.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4195, allocations: 0 / 423.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.42, allocations: 345.1 kB / 423.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004468/0.4205, allocations: 46.58 kB / 423.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.422, allocations: 0.5693 MB / 424 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.4224, allocations: 0.7795 MB / 424.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.4226, allocations: 26.97 kB / 424.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.951e-05/0.4226, allocations: 23.38 kB / 424.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4226, allocations: 0 / 424.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Templates: time 0.008727/0.4314, allocations: 4.005 MB / 428.9 MB, free: 11.59 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches