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.001394/0.001394, allocations: 104.9 kB / 17.72 MB, free: 5.242 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.001695/0.001695, allocations: 188.1 kB / 18.66 MB, free: 4.312 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.467/1.467, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001403/0.001403, allocations: 47.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1116, allocations: 46.61 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2637/0.3754, allocations: 5.704 MB / 380.9 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003656/0.3791, allocations: 1.441 MB / 382.3 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007214/0.3799, allocations: 18.56 kB / 382.3 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004352/0.3803, allocations: 155.8 kB / 382.5 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007652/0.3811, allocations: 276.6 kB / 382.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.3823, allocations: 358.5 kB / 383.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00165/0.384, allocations: 1.236 MB / 384.3 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006354/0.3846, allocations: 425 kB / 384.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005674/0.3852, allocations: 459 kB / 385.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006235/0.3858, allocations: 0.5253 MB / 385.7 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001751/0.386, allocations: 127.9 kB / 385.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002994/0.3863, allocations: 160.3 kB / 386 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.3865, allocations: 250.7 kB / 386.2 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004585/0.387, allocations: 0.5431 MB / 386.8 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001582/0.3886, allocations: 1.403 MB / 388.2 MB, free: 7.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3886, allocations: 0 / 388.2 MB, free: 7.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3886, allocations: 0 / 388.2 MB, free: 7.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.3887, allocations: 1.062 kB / 388.2 MB, free: 7.215 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.002563/0.3912, allocations: 1.292 MB / 389.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.3913, allocations: 12.75 kB / 389.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.3915, allocations: 104.7 kB / 389.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008031/0.3923, allocations: 0.5106 MB / 390.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/0.3924, allocations: 59.56 kB / 390.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.3925, allocations: 81.97 kB / 390.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.3943, allocations: 0.8867 MB / 391.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.3943, allocations: 0 / 391.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.704e-05/0.3944, allocations: 35.91 kB / 391.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.02e-05/0.3945, allocations: 19.44 kB / 391.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.3963, allocations: 0.7854 MB / 392 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005447/0.4018, allocations: 3.024 MB / 395 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.403, allocations: 0.6525 MB / 395.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000729/0.4038, allocations: 409.6 kB / 396 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-05/0.4039, allocations: 13.05 kB / 396.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.4039, allocations: 47.89 kB / 396.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 3.626e-06/0.4039, allocations: 0 / 396.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004603/0.4085, allocations: 2.184 MB / 398.3 MB, free: 1.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.4086, allocations: 58.94 kB / 398.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006484/0.4092, allocations: 0.5022 MB / 398.9 MB, free: 1.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.836e-05/0.4093, allocations: 38.28 kB / 398.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002971/0.4096, allocations: 392 kB / 399.3 MB, free: 1.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.4098, allocations: 254.8 kB / 399.5 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.4101, allocations: 140.4 kB / 399.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4102, allocations: 385.8 kB / 400 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006895/0.4109, allocations: 305.3 kB / 400.3 MB, free: 428 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006894/0.4116, allocations: 434.3 kB / 400.8 MB, free: 176 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.4132, allocations: 0.7634 MB / 401.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4132, allocations: 0 / 401.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002295/0.4155, allocations: 1.034 MB / 402.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.4155, allocations: 6.625 kB / 402.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4155, allocations: 3.281 kB / 402.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006023/0.4161, allocations: 188 kB / 402.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008769/0.417, allocations: 185.4 kB / 402.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004192/0.4212, allocations: 2.858 MB / 405.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008472/0.4221, allocations: 37.58 kB / 405.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.4222, allocations: 29.55 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.0005533/0.4227, allocations: 220.7 kB / 406.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.4229, allocations: 71.12 kB / 406.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002052/0.4231, allocations: 86.42 kB / 406.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.4231, allocations: 10.38 kB / 406.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.197e-05/0.4232, allocations: 2.625 kB / 406.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.4232, allocations: 5.516 kB / 406.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.4245, allocations: 0.8347 MB / 407.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.4245, allocations: 0.875 kB / 407.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007196/0.4252, allocations: 148 kB / 407.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005429/0.4258, allocations: 184.9 kB / 407.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.4258, allocations: 22.83 kB / 407.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00389/0.4297, allocations: 2.858 MB / 410.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.4298, allocations: 5.094 kB / 410.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002714/0.4325, allocations: 1.382 MB / 411.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/0.4327, allocations: 137.1 kB / 411.8 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.4328, allocations: 16.5 kB / 411.8 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005787/0.4334, allocations: 53.58 kB / 411.9 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.4336, allocations: 54.3 kB / 411.9 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.443e-05/0.4336, allocations: 22.95 kB / 411.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004692/0.4341, allocations: 356.9 kB / 412.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4341, allocations: 0 / 412.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001001/0.4351, allocations: 233.6 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.0002479/0.4354, allocations: 124.6 kB / 412.6 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002309/0.4377, allocations: 1.006 MB / 413.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4377, allocations: 0 / 413.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/0.4391, allocations: 0.6373 MB / 414.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007569/0.4399, allocations: 142.3 kB / 414.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003784/0.4437, allocations: 1.88 MB / 416.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/0.4443, allocations: 0.9539 MB / 417.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003856/0.4447, allocations: 85.05 kB / 417.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.4449, allocations: 51.42 kB / 417.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4449, allocations: 3.938 kB / 417.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of Templates: time 0.02078/0.4657, allocations: 10.57 MB / 428 MB, free: 9.934 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