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.001819/0.001819, allocations: 182.6 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 224.2 MB, free: 9.043 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.000743/0.0007431, allocations: 90.3 kB / 272.5 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002914/0.0002914, allocations: 8 kB / 329.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2217, allocations: 47.58 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09499/0.3167, allocations: 80.2 MB / 457.2 MB, free: 364 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003347/0.3172, allocations: 75.97 kB / 457.3 MB, free: 288 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04031/0.3575, allocations: 14.32 MB / 471.6 MB, free: 1.902 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3575, allocations: 3.938 kB / 471.6 MB, free: 1.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.686e-05/0.3576, allocations: 20 kB / 471.6 MB, free: 1.879 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.002862/0.3605, allocations: 1.122 MB / 472.8 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3605, allocations: 8.031 kB / 472.8 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003171/0.3609, allocations: 103.7 kB / 472.9 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008156/0.3617, allocations: 0.5051 MB / 473.4 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.525e-05/0.3618, allocations: 66.42 kB / 473.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.362, allocations: 80.28 kB / 473.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3638, allocations: 0.8927 MB / 474.4 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.3638, allocations: 192 / 474.4 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.112e-05/0.3639, allocations: 35.94 kB / 474.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/0.3639, allocations: 20 kB / 474.5 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.3656, allocations: 0.8081 MB / 475.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005794/0.3714, allocations: 3.1 MB / 478.4 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3726, allocations: 0.6706 MB / 479.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007003/0.3734, allocations: 418.4 kB / 479.5 MB, free: 9.828 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.534e-05/0.3734, allocations: 12.56 kB / 479.5 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.3735, allocations: 43.12 kB / 479.5 MB, free: 9.766 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.266e-06/0.3735, allocations: 0 / 479.5 MB, free: 9.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.005659/0.3791, allocations: 2.37 MB / 481.9 MB, free: 7.324 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.3793, allocations: 64 kB / 481.9 MB, free: 7.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008887/0.3802, allocations: 0.4989 MB / 482.4 MB, free: 6.742 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.22e-05/0.3803, allocations: 41.69 kB / 482.5 MB, free: 6.695 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002597/0.3806, allocations: 391.5 kB / 482.9 MB, free: 6.305 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.3808, allocations: 244.4 kB / 483.1 MB, free: 6.062 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.646e-05/0.3808, allocations: 20 kB / 483.1 MB, free: 6.043 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.381, allocations: 370.8 kB / 483.5 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006347/0.3816, allocations: 317.9 kB / 483.8 MB, free: 5.363 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007744/0.3824, allocations: 445 kB / 484.2 MB, free: 4.891 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.3839, allocations: 0.7702 MB / 485 MB, free: 4.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.3839, allocations: 0 / 485 MB, free: 4.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0022/0.3862, allocations: 1.056 MB / 486.1 MB, free: 3.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.3862, allocations: 8 kB / 486.1 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.3862, allocations: 4 kB / 486.1 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006111/0.3868, allocations: 180 kB / 486.2 MB, free: 2.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008457/0.3877, allocations: 203.7 kB / 486.4 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.3915, allocations: 2.589 MB / 489 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007716/0.3923, allocations: 44.03 kB / 489.1 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.3924, allocations: 31.98 kB / 489.1 MB, free: 15.83 MB / 378.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 () * 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 (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.0004993/0.3929, allocations: 225.7 kB / 489.3 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.3931, allocations: 71.16 kB / 489.4 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000202/0.3933, allocations: 86.17 kB / 489.5 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3933, allocations: 15.98 kB / 489.5 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/0.3934, allocations: 4 kB / 489.5 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.3934, allocations: 3.984 kB / 489.5 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.3947, allocations: 0.8377 MB / 490.3 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.3947, allocations: 4 kB / 490.3 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007419/0.3955, allocations: 147.8 kB / 490.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005538/0.396, allocations: 183.5 kB / 490.7 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.472e-05/0.3961, allocations: 23.98 kB / 490.7 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003468/0.3996, allocations: 2.605 MB / 493.3 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3996, allocations: 7.938 kB / 493.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00267/0.4023, allocations: 1.412 MB / 494.7 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.4026, allocations: 140.2 kB / 494.9 MB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.4028, allocations: 20.19 kB / 494.9 MB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006212/0.4034, allocations: 59.95 kB / 494.9 MB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.4035, allocations: 56.61 kB / 495 MB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/0.4036, allocations: 27.92 kB / 495 MB, free: 9.688 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004655/0.4041, allocations: 350.9 kB / 495.4 MB, free: 9.348 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4041, allocations: 0 / 495.4 MB, free: 9.348 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008722/0.405, allocations: 232.1 kB / 495.6 MB, free: 9.121 MB / 378.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 () * 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 (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.0002576/0.4052, allocations: 135.2 kB / 495.7 MB, free: 8.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.4075, allocations: 1.025 MB / 496.7 MB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4075, allocations: 0 / 496.7 MB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.4088, allocations: 0.6472 MB / 497.4 MB, free: 7.281 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008344/0.4097, allocations: 134.1 kB / 497.5 MB, free: 7.148 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003531/0.4132, allocations: 2.3 MB / 499.8 MB, free: 4.828 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005103/0.4137, allocations: 0.9541 MB / 0.489 GB, free: 3.844 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004534/0.4142, allocations: 81.06 kB / 0.4891 GB, free: 3.762 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.4144, allocations: 47.42 kB / 0.4892 GB, free: 3.715 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4144, allocations: 0 / 0.4892 GB, free: 3.715 MB / 378.7 MB Notification: Performance of Templates: time 0.186/0.6005, allocations: 9.548 MB / 0.4985 GB, free: 105.2 MB / 378.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/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_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches