Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002317/0.002317, allocations: 177.8 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 89.28 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.454e-05/2.455e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.329, allocations: 47.57 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1271/0.4561, allocations: 77.58 MB / 439.9 MB, free: 8.738 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.4565, allocations: 75.86 kB / 440 MB, free: 8.668 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0271/0.4836, allocations: 5.687 MB / 445.7 MB, free: 3 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4836, allocations: 0 / 445.7 MB, free: 3 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.329e-05/0.4837, allocations: 8 kB / 445.7 MB, free: 2.992 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001539/0.4852, allocations: 0.5703 MB / 446.3 MB, free: 2.375 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.4853, allocations: 19.97 kB / 446.3 MB, free: 2.355 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.4854, allocations: 32.47 kB / 446.3 MB, free: 2.324 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.4859, allocations: 267.5 kB / 446.6 MB, free: 2.02 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.4859, allocations: 8 kB / 446.6 MB, free: 2.012 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.486, allocations: 16 kB / 446.6 MB, free: 1.996 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005226/0.4865, allocations: 157.1 kB / 446.8 MB, free: 1.844 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005899/0.4871, allocations: 222.3 kB / 447 MB, free: 1.613 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.4872, allocations: 0 / 447 MB, free: 1.613 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.4872, allocations: 0 / 447 MB, free: 1.613 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.4872, allocations: 12 kB / 447 MB, free: 1.602 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.4899, allocations: 1.054 MB / 448 MB, free: 484 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005394/0.4904, allocations: 130.7 kB / 448.2 MB, free: 344 kB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.4906, allocations: 52.86 kB / 448.2 MB, free: 288 kB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.4907, allocations: 3.984 kB / 448.2 MB, free: 284 kB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.491, allocations: 133.6 kB / 448.3 MB, free: 132 kB / 331.1 MB Notification: Performance of pre-optimization done (n=12): time 2.484e-06/0.491, allocations: 4 kB / 448.4 MB, free: 128 kB / 331.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009974/0.492, allocations: 190.1 kB / 448.5 MB, free: 15.93 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.4921, allocations: 106.8 kB / 448.6 MB, free: 15.8 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.4925, allocations: 216.5 kB / 448.9 MB, free: 15.59 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.4926, allocations: 25.7 kB / 448.9 MB, free: 15.55 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.4928, allocations: 266 kB / 449.1 MB, free: 15.29 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.968e-05/0.4928, allocations: 43.39 kB / 449.2 MB, free: 15.25 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.928e-05/0.4929, allocations: 3.938 kB / 449.2 MB, free: 15.25 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.493, allocations: 318.8 kB / 449.5 MB, free: 14.93 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.4932, allocations: 58.23 kB / 449.6 MB, free: 14.87 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.4935, allocations: 150 kB / 449.7 MB, free: 14.67 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.4937, allocations: 59.95 kB / 449.8 MB, free: 14.61 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.4937, allocations: 4 kB / 449.8 MB, free: 14.61 MB / 347.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001105/0.4948, allocations: 278 kB / 450 MB, free: 14.33 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/0.4949, allocations: 33.7 kB / 450.1 MB, free: 14.29 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.4949, allocations: 4 kB / 450.1 MB, free: 14.29 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003106/0.4952, allocations: 59.58 kB / 450.1 MB, free: 14.23 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/0.4956, allocations: 55.91 kB / 450.2 MB, free: 14.17 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/0.498, allocations: 1.443 MB / 451.6 MB, free: 12.61 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006663/0.4987, allocations: 59.72 kB / 451.7 MB, free: 12.55 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/0.4987, allocations: 19.94 kB / 451.7 MB, free: 12.53 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001562/0.4989, allocations: 109 kB / 451.8 MB, free: 12.42 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.431e-05/0.499, allocations: 23.75 kB / 451.8 MB, free: 12.39 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.724e-05/0.4991, allocations: 25.83 kB / 451.9 MB, free: 12.37 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4991, allocations: 4 kB / 451.9 MB, free: 12.37 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.4991, allocations: 0 / 451.9 MB, free: 12.37 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4991, allocations: 0 / 451.9 MB, free: 12.37 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.4995, allocations: 261.9 kB / 452.1 MB, free: 12.07 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4995, allocations: 0 / 452.1 MB, free: 12.07 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.4998, allocations: 27.97 kB / 452.1 MB, free: 12.05 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000242/0.5, allocations: 52.83 kB / 452.2 MB, free: 11.99 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.5001, allocations: 4 kB / 452.2 MB, free: 11.99 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002312/0.5024, allocations: 1.449 MB / 453.6 MB, free: 10.43 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.5024, allocations: 0 / 453.6 MB, free: 10.43 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009403/0.5034, allocations: 223 kB / 453.9 MB, free: 10.2 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.5036, allocations: 105.8 kB / 454 MB, free: 10.07 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.5037, allocations: 8 kB / 454 MB, free: 10.07 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004968/0.5042, allocations: 39.91 kB / 454 MB, free: 10.03 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.5043, allocations: 23.97 kB / 454 MB, free: 10 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.5044, allocations: 0 / 454 MB, free: 10 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002644/0.5046, allocations: 172.5 kB / 454.2 MB, free: 9.836 MB / 347.1 MB Notification: Performance of sort global known variables: time 4e-07/0.5046, allocations: 0 / 454.2 MB, free: 9.836 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005343/0.5052, allocations: 78.75 kB / 454.3 MB, free: 9.762 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001878/0.5054, allocations: 99.23 kB / 454.4 MB, free: 9.652 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007212/0.5061, allocations: 313 kB / 454.7 MB, free: 9.324 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5061, allocations: 0 / 454.7 MB, free: 9.324 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000343/0.5065, allocations: 177.6 kB / 454.9 MB, free: 9.141 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.5069, allocations: 33.36 kB / 454.9 MB, free: 9.109 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009555/0.5078, allocations: 300.8 kB / 455.2 MB, free: 8.789 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.5083, allocations: 0.7599 MB / 455.9 MB, free: 8 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.596e-05/0.5084, allocations: 15.44 kB / 456 MB, free: 7.984 MB / 347.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5084, allocations: 4 kB / 456 MB, free: 7.98 MB / 347.1 MB Notification: Performance of Templates: time 0.009782/0.5182, allocations: 4.123 MB / 460.1 MB, free: 3.895 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches