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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009677/0.0009678, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000838/0.000838, allocations: 78.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.81e-05/1.814e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.08843, allocations: 47.6 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4291, allocations: 79.64 MB / 442.7 MB, free: 40 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.4294, allocations: 72.89 kB / 442.8 MB, free: 0 / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03783/0.4673, allocations: 14.16 MB / 456.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4673, allocations: 4.75 kB / 457 MB, free: 4.246 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.829e-05/0.4674, allocations: 24 kB / 457 MB, free: 4.223 MB / 330.7 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.002062/0.4695, allocations: 1.054 MB / 458 MB, free: 3.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.4695, allocations: 12.03 kB / 458 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.4697, allocations: 102.8 kB / 458.1 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006431/0.4704, allocations: 497.9 kB / 458.6 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.4704, allocations: 24 kB / 458.7 MB, free: 2.605 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.4705, allocations: 48 kB / 458.7 MB, free: 2.559 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001093/0.4716, allocations: 0.6726 MB / 459.4 MB, free: 2.145 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.4728, allocations: 0.7148 MB / 460.1 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.4728, allocations: 4 kB / 460.1 MB, free: 1.629 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.338e-05/0.4729, allocations: 0 / 460.1 MB, free: 1.629 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.4729, allocations: 20 kB / 460.1 MB, free: 1.609 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004404/0.4773, allocations: 2.955 MB / 463.1 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007941/0.4781, allocations: 0.5785 MB / 463.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004448/0.4786, allocations: 363.6 kB / 464 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-05/0.4787, allocations: 8.562 kB / 464 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.4787, allocations: 50.55 kB / 464.1 MB, free: 14.69 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 1.994e-06/0.4787, allocations: 0 / 464.1 MB, free: 14.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.005125/0.4838, allocations: 2.182 MB / 466.2 MB, free: 12.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.4839, allocations: 60.19 kB / 466.3 MB, free: 12.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004406/0.4844, allocations: 396.6 kB / 466.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.704e-05/0.4844, allocations: 25.7 kB / 466.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/0.4846, allocations: 399.2 kB / 467.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.4848, allocations: 244.2 kB / 467.3 MB, free: 12.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.573e-05/0.4848, allocations: 0 / 467.3 MB, free: 12.03 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.485, allocations: 374 kB / 467.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003733/0.4854, allocations: 252.7 kB / 467.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004289/0.4858, allocations: 365.5 kB / 468.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.487, allocations: 479.3 kB / 468.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4871, allocations: 0 / 468.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002263/0.4893, allocations: 1.054 MB / 469.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.4894, allocations: 8.266 kB / 469.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.4894, allocations: 8 kB / 469.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005793/0.49, allocations: 170 kB / 470 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008366/0.4908, allocations: 198.8 kB / 470.2 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003273/0.4941, allocations: 2.523 MB / 472.7 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/0.4947, allocations: 27.97 kB / 472.8 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.984e-05/0.4947, allocations: 35.91 kB / 472.8 MB, free: 7.453 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001798/0.4949, allocations: 116.8 kB / 472.9 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.495, allocations: 63.25 kB / 473 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/0.4952, allocations: 82.19 kB / 473 MB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.4953, allocations: 8 kB / 473.1 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4953, allocations: 0 / 473.1 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.4953, allocations: 3.984 kB / 473.1 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008957/0.4962, allocations: 0.7253 MB / 473.8 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.4962, allocations: 3.938 kB / 473.8 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000705/0.4969, allocations: 147.8 kB / 473.9 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004848/0.4974, allocations: 184.9 kB / 474.1 MB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.878e-05/0.4975, allocations: 11.98 kB / 474.1 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0032/0.5007, allocations: 2.533 MB / 476.7 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5007, allocations: 0 / 476.7 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.5034, allocations: 1.401 MB / 478.1 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.5035, allocations: 128.4 kB / 478.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.981e-05/0.5036, allocations: 11.98 kB / 478.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005542/0.5042, allocations: 47.97 kB / 478.2 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.5043, allocations: 48.7 kB / 478.3 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.849e-05/0.5044, allocations: 27.97 kB / 478.3 MB, free: 1.719 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003615/0.5048, allocations: 299 kB / 478.6 MB, free: 1.426 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5048, allocations: 0 / 478.6 MB, free: 1.426 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008179/0.5056, allocations: 211.9 kB / 478.8 MB, free: 1.219 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002605/0.5059, allocations: 128.4 kB / 478.9 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.5076, allocations: 0.8776 MB / 479.8 MB, free: 200 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5076, allocations: 0.6875 kB / 479.8 MB, free: 200 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.5087, allocations: 0.5708 MB / 480.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.5092, allocations: 94.12 kB / 480.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.512, allocations: 1.529 MB / 482 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006224/0.5126, allocations: 0.9735 MB / 483 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000402/0.513, allocations: 84.83 kB / 483.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.5132, allocations: 43.42 kB / 483.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5132, allocations: 0 / 483.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of Templates: time 0.0166/0.5298, allocations: 8.334 MB / 491.4 MB, free: 4.5 MB / 362.7 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches