Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002164/0.002164, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008835/0.0008835, allocations: 100.3 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004193/0.0004193, allocations: 8 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2886, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.411, allocations: 83.04 MB / 484.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.4114, allocations: 79.95 kB / 484.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04481/0.4562, allocations: 15.82 MB / 0.4887 GB, free: 13.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4563, allocations: 0 / 0.4887 GB, free: 13.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.646e-05/0.4564, allocations: 20 kB / 0.4887 GB, free: 13.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002925/0.4593, allocations: 1.212 MB / 0.4899 GB, free: 12.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.4594, allocations: 12.03 kB / 0.4899 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.4597, allocations: 114.7 kB / 0.49 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.4607, allocations: 0.5549 MB / 0.4906 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.843e-05/0.4608, allocations: 69.95 kB / 0.4906 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.461, allocations: 91.91 kB / 0.4907 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.4627, allocations: 0.8507 MB / 0.4916 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.4627, allocations: 0 / 0.4916 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-05/0.4628, allocations: 36 kB / 0.4916 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.4628, allocations: 24 kB / 0.4916 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.4645, allocations: 0.8745 MB / 0.4925 GB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006118/0.4706, allocations: 3.3 MB / 0.4957 GB, free: 6.102 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.4719, allocations: 0.6735 MB / 0.4964 GB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.848e-05/0.472, allocations: 12.55 kB / 0.4964 GB, free: 5.406 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.472, allocations: 47.06 kB / 0.4964 GB, free: 5.352 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.885e-06/0.472, allocations: 0 / 0.4964 GB, free: 5.352 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.00535/0.4774, allocations: 2.437 MB / 0.4988 GB, free: 2.844 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.421e-05/0.4775, allocations: 64.06 kB / 0.4988 GB, free: 2.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007677/0.4783, allocations: 0.5384 MB / 0.4994 GB, free: 2.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.752e-05/0.4784, allocations: 33.7 kB / 0.4994 GB, free: 2.188 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/0.4787, allocations: 439.3 kB / 0.4998 GB, free: 1.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002733/0.479, allocations: 264.2 kB / 0.5001 GB, free: 1.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.145e-05/0.479, allocations: 20 kB / 0.5001 GB, free: 1.469 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.4792, allocations: 382.8 kB / 0.5005 GB, free: 1.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007/0.48, allocations: 341.8 kB / 0.5008 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007186/0.4807, allocations: 472.6 kB / 0.5012 GB, free: 248 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2738/0.7545, allocations: 390.1 kB / 0.5016 GB, free: 93.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.7545, allocations: 1.781 kB / 0.5016 GB, free: 93.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002718/0.7573, allocations: 1.13 MB / 0.5027 GB, free: 93.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.7573, allocations: 7.812 kB / 0.5027 GB, free: 93.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.7573, allocations: 4 kB / 0.5027 GB, free: 93.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006008/0.7579, allocations: 193.1 kB / 0.5029 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009065/0.7588, allocations: 211.2 kB / 0.5031 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003365/0.7622, allocations: 2.681 MB / 0.5057 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/0.7629, allocations: 41.7 kB / 0.5058 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.444e-05/0.763, allocations: 35.89 kB / 0.5058 GB, free: 91.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * 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,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003737/0.7634, allocations: 236.1 kB / 0.506 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.7635, allocations: 84.91 kB / 0.5061 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.7637, allocations: 92.73 kB / 0.5062 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.7637, allocations: 7.344 kB / 0.5062 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/0.7637, allocations: 2.875 kB / 0.5062 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.7638, allocations: 4.328 kB / 0.5062 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.7649, allocations: 0.8906 MB / 0.5071 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.7649, allocations: 0 / 0.5071 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000698/0.7656, allocations: 150.8 kB / 0.5072 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004467/0.7661, allocations: 188.6 kB / 0.5074 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.166e-05/0.7661, allocations: 20.97 kB / 0.5074 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00281/0.7689, allocations: 2.688 MB / 0.5101 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.769, allocations: 0 / 0.5101 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.7711, allocations: 1.456 MB / 0.5115 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.7713, allocations: 148.7 kB / 0.5116 GB, free: 89.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.116e-05/0.7714, allocations: 15.09 kB / 0.5116 GB, free: 89.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005835/0.772, allocations: 64.11 kB / 0.5117 GB, free: 89.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.7721, allocations: 54.67 kB / 0.5117 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.7721, allocations: 21.83 kB / 0.5118 GB, free: 89.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000387/0.7725, allocations: 434.7 kB / 0.5122 GB, free: 89.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7725, allocations: 0 / 0.5122 GB, free: 89.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007715/0.7733, allocations: 251.1 kB / 0.5124 GB, free: 89.14 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.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002499/0.7736, allocations: 145.2 kB / 0.5126 GB, free: 89.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.7755, allocations: 1.059 MB / 0.5136 GB, free: 88.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7755, allocations: 3.656 kB / 0.5136 GB, free: 88.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.7766, allocations: 0.6459 MB / 0.5142 GB, free: 88.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005456/0.7772, allocations: 129.8 kB / 0.5143 GB, free: 88.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.78, allocations: 2.418 MB / 0.5167 GB, free: 86.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.7804, allocations: 1.004 MB / 0.5177 GB, free: 86.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003845/0.7808, allocations: 95.08 kB / 0.5178 GB, free: 86.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.7809, allocations: 58.28 kB / 0.5178 GB, free: 86.1 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7809, allocations: 0 / 0.5178 GB, free: 86.1 MB / 378.7 MB Notification: Performance of Templates: time 0.0144/0.7954, allocations: 10.05 MB / 0.5277 GB, free: 82.18 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches