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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 175.9 kB / 8.477 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.2 MB / 214.1 MB, free: 5.086 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.000969/0.000969, allocations: 86.31 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.823e-06/6.863e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08113/0.08115, allocations: 47.57 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2391/0.3203, allocations: 79.34 MB / 441.9 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.3205, allocations: 67.95 kB / 441.9 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03523/0.3558, allocations: 14.01 MB / 456 MB, free: 6.902 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.79e-05/0.3559, allocations: 22.88 kB / 456 MB, free: 6.898 MB / 314.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.001853/0.3577, allocations: 1.071 MB / 457.1 MB, free: 6.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.3578, allocations: 11.62 kB / 457.1 MB, free: 6.176 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.3579, allocations: 104.3 kB / 457.2 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006632/0.3586, allocations: 0.4936 MB / 457.7 MB, free: 5.781 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.3587, allocations: 30.22 kB / 457.7 MB, free: 5.777 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.3588, allocations: 46.28 kB / 457.7 MB, free: 5.777 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001203/0.36, allocations: 0.6639 MB / 458.4 MB, free: 5.734 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.3612, allocations: 0.7147 MB / 459.1 MB, free: 5.543 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3612, allocations: 0 / 459.1 MB, free: 5.543 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-05/0.3613, allocations: 1.344 kB / 459.1 MB, free: 5.543 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.3613, allocations: 23.78 kB / 459.1 MB, free: 5.539 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004716/0.366, allocations: 2.973 MB / 462.1 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007036/0.3668, allocations: 372.9 kB / 462.5 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006402/0.3674, allocations: 347 kB / 462.8 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.95e-05/0.3675, allocations: 13.12 kB / 462.8 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.3675, allocations: 41.81 kB / 462.9 MB, free: 3.965 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 2.705e-06/0.3675, allocations: 0.5312 kB / 462.9 MB, free: 3.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.005593/0.3731, allocations: 2.223 MB / 465.1 MB, free: 3.156 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/0.3732, allocations: 67.28 kB / 465.2 MB, free: 3.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004322/0.3736, allocations: 385.7 kB / 465.5 MB, free: 2.953 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.66e-05/0.3737, allocations: 25.7 kB / 465.6 MB, free: 2.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3738, allocations: 332.8 kB / 465.9 MB, free: 2.664 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.3739, allocations: 241 kB / 466.1 MB, free: 2.484 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-05/0.374, allocations: 0.75 kB / 466.1 MB, free: 2.484 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.785e-05/0.3741, allocations: 381.8 kB / 466.5 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004195/0.3745, allocations: 259.4 kB / 466.7 MB, free: 2.137 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004847/0.375, allocations: 360.2 kB / 467.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00132/0.3763, allocations: 486.4 kB / 467.6 MB, free: 1.922 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3763, allocations: 1.281 kB / 467.6 MB, free: 1.922 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002717/0.379, allocations: 1.079 MB / 468.7 MB, free: 1.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3791, allocations: 6.875 kB / 468.7 MB, free: 1.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.3791, allocations: 7.875 kB / 468.7 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005963/0.3797, allocations: 163.4 kB / 468.8 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009185/0.3806, allocations: 198.7 kB / 469 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003625/0.3843, allocations: 2.486 MB / 471.5 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006329/0.3849, allocations: 24.77 kB / 471.5 MB, free: 68 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.848e-05/0.385, allocations: 31.86 kB / 471.6 MB, free: 64 kB / 314.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.0002694/0.3853, allocations: 117.8 kB / 471.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.3855, allocations: 68.91 kB / 471.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.3857, allocations: 80.67 kB / 471.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.3858, allocations: 11.81 kB / 471.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.661e-05/0.3858, allocations: 3.031 kB / 471.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.3858, allocations: 3.984 kB / 471.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.3871, allocations: 0.7289 MB / 472.6 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3871, allocations: 0 / 472.6 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000831/0.3879, allocations: 163 kB / 472.7 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005499/0.3885, allocations: 167.2 kB / 472.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.193e-05/0.3886, allocations: 20.34 kB / 472.9 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/0.3921, allocations: 2.475 MB / 475.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.3921, allocations: 3.906 kB / 475.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002943/0.395, allocations: 1.41 MB / 476.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.3952, allocations: 135.9 kB / 476.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.3953, allocations: 7.625 kB / 476.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006101/0.3959, allocations: 59.95 kB / 477 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.396, allocations: 32.16 kB / 477 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.976e-05/0.3961, allocations: 27.23 kB / 477.1 MB, free: 13.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003426/0.3964, allocations: 299.5 kB / 477.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008208/0.3973, allocations: 204 kB / 477.5 MB, free: 12.89 MB / 330.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.0002364/0.3975, allocations: 129.4 kB / 477.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.3992, allocations: 0.854 MB / 478.5 MB, free: 12.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3992, allocations: 128 / 478.5 MB, free: 12.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.4003, allocations: 0.5382 MB / 479.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.4009, allocations: 88.5 kB / 479.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.4038, allocations: 1.576 MB / 480.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006969/0.4045, allocations: 1.036 MB / 481.8 MB, free: 9.16 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4045, allocations: 0 / 481.8 MB, free: 9.16 MB / 330.7 MB Notification: Performance of Templates: time 0.01642/0.4209, allocations: 10.02 MB / 491.8 MB, free: 15.18 MB / 346.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