Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002424/0.002429, allocations: 176.2 kB / 8.151 MB, free: 2.215 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.689/1.689, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001299/0.001298, allocations: 89.97 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.497e-06/9.698e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2526, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.3784, allocations: 79.34 MB / 441.2 MB, free: 6.738 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/0.3788, allocations: 76.44 kB / 441.2 MB, free: 6.664 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.06627/0.4451, allocations: 14 MB / 455.3 MB, free: 8.668 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.789e-05/0.4452, allocations: 20 kB / 455.3 MB, free: 8.648 MB / 346.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.003914/0.4492, allocations: 1.091 MB / 456.4 MB, free: 7.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.4492, allocations: 8.031 kB / 456.4 MB, free: 7.504 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004478/0.4497, allocations: 110.8 kB / 456.5 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.4509, allocations: 496.4 kB / 457 MB, free: 6.867 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.646e-05/0.451, allocations: 31.91 kB / 457 MB, free: 6.836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.4512, allocations: 44 kB / 457 MB, free: 6.793 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002312/0.4535, allocations: 0.6722 MB / 457.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/0.4558, allocations: 0.7128 MB / 458.4 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.4559, allocations: 0 / 458.4 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.456, allocations: 0 / 458.4 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.275e-05/0.4561, allocations: 23.91 kB / 458.4 MB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009482/0.4656, allocations: 2.971 MB / 461.4 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.4671, allocations: 364.6 kB / 461.8 MB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.4682, allocations: 350.8 kB / 462.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.036e-05/0.4683, allocations: 16.64 kB / 462.1 MB, free: 1.566 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.4684, allocations: 43.22 kB / 462.2 MB, free: 1.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 5.751e-06/0.4684, allocations: 0 / 462.2 MB, free: 1.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.01104/0.4794, allocations: 2.226 MB / 464.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.4795, allocations: 61.38 kB / 464.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008588/0.4804, allocations: 397.4 kB / 464.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001852/0.4806, allocations: 25.7 kB / 464.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.4808, allocations: 365.8 kB / 465.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000342/0.4812, allocations: 244.4 kB / 465.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.735e-05/0.4813, allocations: 0 / 465.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4814, allocations: 338.7 kB / 465.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008528/0.4823, allocations: 254 kB / 466 MB, free: 13.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009585/0.4833, allocations: 363 kB / 466.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002633/0.4859, allocations: 496.2 kB / 466.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.486, allocations: 0 / 466.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004808/0.4908, allocations: 1.03 MB / 467.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.4909, allocations: 8 kB / 467.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.4909, allocations: 7.656 kB / 467.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009666/0.4919, allocations: 175.9 kB / 468.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001878/0.4938, allocations: 199.2 kB / 468.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006695/0.5005, allocations: 2.48 MB / 470.8 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009838/0.5016, allocations: 20.11 kB / 470.8 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.5017, allocations: 43.83 kB / 470.8 MB, free: 8.59 MB / 362.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.0002575/0.502, allocations: 41.58 kB / 470.9 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002394/0.5022, allocations: 67.25 kB / 470.9 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/0.5025, allocations: 73.88 kB / 471 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.5026, allocations: 8 kB / 471 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.967e-05/0.5026, allocations: 7.906 kB / 471 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.5026, allocations: 3.984 kB / 471 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.5042, allocations: 0.7251 MB / 471.8 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.5043, allocations: 0 / 471.8 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/0.5059, allocations: 159.8 kB / 471.9 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001026/0.507, allocations: 179.6 kB / 472.1 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001599/0.5072, allocations: 11.98 kB / 472.1 MB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006324/0.5135, allocations: 2.471 MB / 474.6 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.5136, allocations: 128 / 474.6 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005521/0.5191, allocations: 1.419 MB / 476 MB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002929/0.5195, allocations: 132.3 kB / 476.1 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.5197, allocations: 8 kB / 476.1 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.5209, allocations: 51.95 kB / 476.2 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.5211, allocations: 36.59 kB / 476.2 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.5212, allocations: 31.89 kB / 476.3 MB, free: 2.977 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005848/0.5218, allocations: 303 kB / 476.5 MB, free: 2.684 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001343/0.5232, allocations: 200.2 kB / 476.7 MB, free: 2.488 MB / 362.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.0003986/0.5236, allocations: 129 kB / 476.9 MB, free: 2.352 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003286/0.5269, allocations: 0.8488 MB / 477.7 MB, free: 1.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/0.527, allocations: 0 / 477.7 MB, free: 1.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002282/0.5293, allocations: 0.5318 MB / 478.2 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.5304, allocations: 93.69 kB / 478.3 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005394/0.5358, allocations: 1.614 MB / 480 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/0.5371, allocations: 1.039 MB / 481 MB, free: 14.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/0.5372, allocations: 4 kB / 481 MB, free: 14.14 MB / 378.7 MB Notification: Performance of Templates: time 0.02896/0.5661, allocations: 13.4 MB / 494.4 MB, free: 0.7734 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches