Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001682/0.001681, allocations: 109.3 kB / 17.73 MB, free: 5.32 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.002423/0.002423, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.548/1.548, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001678/0.001678, allocations: 59.92 kB / 328.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1129, allocations: 46.61 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2261/0.339, allocations: 5.704 MB / 380.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002979/0.342, allocations: 1.447 MB / 382.3 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006613/0.3427, allocations: 14.28 kB / 382.3 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004237/0.3433, allocations: 156.9 kB / 382.5 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006767/0.3439, allocations: 279 kB / 382.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.345, allocations: 355.1 kB / 383.1 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001853/0.3469, allocations: 1.245 MB / 384.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007227/0.3476, allocations: 417.8 kB / 384.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008467/0.3485, allocations: 461.6 kB / 385.2 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006903/0.3492, allocations: 0.5251 MB / 385.7 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001783/0.3494, allocations: 123.9 kB / 385.8 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003085/0.3497, allocations: 162.6 kB / 386 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.3499, allocations: 252.2 kB / 386.2 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005049/0.3504, allocations: 0.5423 MB / 386.8 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.3523, allocations: 1.401 MB / 388.2 MB, free: 7.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.3523, allocations: 0.8438 kB / 388.2 MB, free: 7.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3524, allocations: 0 / 388.2 MB, free: 7.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.087e-05/0.3524, allocations: 0 / 388.2 MB, free: 7.223 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002798/0.3552, allocations: 1.291 MB / 389.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.3553, allocations: 14.19 kB / 389.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.3555, allocations: 104.9 kB / 389.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007684/0.3562, allocations: 0.5108 MB / 390.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.612e-05/0.3563, allocations: 58.25 kB / 390.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/0.3565, allocations: 83.44 kB / 390.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002215/0.3587, allocations: 0.8895 MB / 391.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.3588, allocations: 0 / 391.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.589e-05/0.3589, allocations: 39.69 kB / 391.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.852e-05/0.3589, allocations: 19.69 kB / 391.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.3609, allocations: 0.7838 MB / 392 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006243/0.3672, allocations: 3.02 MB / 395 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.3686, allocations: 0.6538 MB / 395.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006856/0.3693, allocations: 408.5 kB / 396.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.408e-05/0.3693, allocations: 13.62 kB / 396.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.3694, allocations: 42.22 kB / 396.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 3.717e-06/0.3694, allocations: 4 kB / 396.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.00501/0.3744, allocations: 2.185 MB / 398.3 MB, free: 1.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.3745, allocations: 60.03 kB / 398.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008373/0.3753, allocations: 0.5023 MB / 398.9 MB, free: 1.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.3754, allocations: 40.39 kB / 398.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.3757, allocations: 397 kB / 399.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.3759, allocations: 251.1 kB / 399.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002328/0.3761, allocations: 136.3 kB / 399.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3763, allocations: 389 kB / 400 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006554/0.3769, allocations: 301.7 kB / 400.3 MB, free: 428 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007321/0.3777, allocations: 429.6 kB / 400.8 MB, free: 180 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001747/0.3794, allocations: 0.7636 MB / 401.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3794, allocations: 0 / 401.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002376/0.3818, allocations: 1.034 MB / 402.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.3819, allocations: 7.594 kB / 402.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.3819, allocations: 6.125 kB / 402.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006704/0.3826, allocations: 188.2 kB / 402.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008803/0.3835, allocations: 183.7 kB / 402.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004127/0.3876, allocations: 2.863 MB / 405.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007658/0.3884, allocations: 41.42 kB / 405.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-05/0.3884, allocations: 28.3 kB / 405.9 MB, free: 12.9 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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 {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004814/0.3889, allocations: 221.7 kB / 406.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.3891, allocations: 70.81 kB / 406.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.3893, allocations: 86.23 kB / 406.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.894e-06/0.3893, allocations: 10.06 kB / 406.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.956e-05/0.3893, allocations: 3.844 kB / 406.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3893, allocations: 3.984 kB / 406.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.3905, allocations: 0.8347 MB / 407.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3905, allocations: 3.938 kB / 407.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007443/0.3913, allocations: 147.5 kB / 407.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005389/0.3918, allocations: 184.5 kB / 407.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.084e-05/0.3919, allocations: 22.52 kB / 407.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003928/0.3958, allocations: 2.854 MB / 410.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3958, allocations: 9 kB / 410.3 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.3986, allocations: 1.384 MB / 411.7 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.3988, allocations: 136.7 kB / 411.8 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.3989, allocations: 17.31 kB / 411.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005659/0.3995, allocations: 53.64 kB / 411.9 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.3997, allocations: 53.83 kB / 411.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.78e-05/0.3997, allocations: 24.67 kB / 412 MB, free: 8.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004724/0.4002, allocations: 355 kB / 412.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4002, allocations: 0 / 412.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009705/0.4012, allocations: 225.4 kB / 412.5 MB, free: 8.168 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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 (56): * Single equations (assignments): 55 * 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 {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003017/0.4015, allocations: 132.2 kB / 412.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.4039, allocations: 1.004 MB / 413.7 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4039, allocations: 1.156 kB / 413.7 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.4053, allocations: 0.6435 MB / 414.3 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000717/0.406, allocations: 138.2 kB / 414.4 MB, free: 7.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.4094, allocations: 1.88 MB / 416.3 MB, free: 5.621 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/0.4099, allocations: 0.9539 MB / 417.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000405/0.4103, allocations: 81.05 kB / 417.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.4105, allocations: 55.42 kB / 417.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4105, allocations: 0 / 417.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of Templates: time 0.01894/0.4294, allocations: 10.57 MB / 428 MB, free: 9.926 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches