Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009365/0.0009367, allocations: 195.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.5 MB / 245.3 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008063/0.0008064, allocations: 101.1 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002079/0.0002079, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1822, allocations: 51.3 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08572/0.268, allocations: 81.94 MB / 490.6 MB, free: 9.691 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.2682, allocations: 83.95 kB / 490.7 MB, free: 9.609 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01645/0.2847, allocations: 6.504 MB / 497.2 MB, free: 3.078 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2847, allocations: 0 / 497.2 MB, free: 3.078 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.2847, allocations: 8 kB / 497.2 MB, free: 3.07 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009873/0.2857, allocations: 0.6354 MB / 497.8 MB, free: 2.379 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.2857, allocations: 8.031 kB / 497.9 MB, free: 2.371 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.332e-05/0.2858, allocations: 32.56 kB / 497.9 MB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003481/0.2862, allocations: 308 kB / 498.2 MB, free: 2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.2862, allocations: 16.94 kB / 498.2 MB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.2863, allocations: 32.38 kB / 498.2 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006636/0.2869, allocations: 332.2 kB / 498.6 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2869, allocations: 192 / 498.6 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.287, allocations: 15.94 kB / 498.6 MB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.287, allocations: 8 kB / 498.6 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007976/0.2878, allocations: 318 kB / 498.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.2896, allocations: 1.182 MB / 0.4884 GB, free: 24 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008054/0.2904, allocations: 276 kB / 0.4886 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.2908, allocations: 124.8 kB / 0.4887 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.2908, allocations: 3.984 kB / 0.4887 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004722/0.2913, allocations: 199 kB / 0.4889 GB, free: 15.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.522e-06/0.2913, allocations: 0 / 0.4889 GB, free: 15.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.002178/0.2935, allocations: 0.7332 MB / 0.4896 GB, free: 14.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/0.2936, allocations: 103 kB / 0.4897 GB, free: 14.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002857/0.2939, allocations: 286.5 kB / 0.49 GB, free: 14.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.2939, allocations: 33.64 kB / 0.49 GB, free: 14.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.294, allocations: 191.7 kB / 0.4902 GB, free: 14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.2941, allocations: 43.45 kB / 0.4903 GB, free: 13.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.467e-05/0.2941, allocations: 4 kB / 0.4903 GB, free: 13.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2942, allocations: 334.8 kB / 0.4906 GB, free: 13.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/0.2946, allocations: 124.4 kB / 0.4907 GB, free: 13.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.295, allocations: 220.8 kB / 0.4909 GB, free: 13.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007009/0.2957, allocations: 338.4 kB / 0.4912 GB, free: 12.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2957, allocations: 0 / 0.4912 GB, free: 12.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001189/0.2969, allocations: 0.5072 MB / 0.4917 GB, free: 12.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.2969, allocations: 37.7 kB / 0.4918 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2969, allocations: 4 kB / 0.4918 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003469/0.2973, allocations: 88.86 kB / 0.4919 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.2975, allocations: 51.91 kB / 0.4919 GB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002275/0.2998, allocations: 1.815 MB / 0.4937 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003222/0.3001, allocations: 67.64 kB / 0.4938 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.3002, allocations: 15.98 kB / 0.4938 GB, free: 10.12 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: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001478/0.3003, allocations: 145.8 kB / 0.4939 GB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.3004, allocations: 31.69 kB / 0.4939 GB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.3004, allocations: 25.83 kB / 0.494 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3004, allocations: 4 kB / 0.494 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.3004, allocations: 0 / 0.494 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.3004, allocations: 0 / 0.494 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/0.3007, allocations: 329.3 kB / 0.4943 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3007, allocations: 0 / 0.4943 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.3009, allocations: 31.97 kB / 0.4943 GB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002636/0.3012, allocations: 76.81 kB / 0.4944 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3012, allocations: 11.98 kB / 0.4944 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.3032, allocations: 1.686 MB / 0.496 GB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3032, allocations: 0 / 0.496 GB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.3042, allocations: 413.4 kB / 0.4964 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.952e-05/0.3043, allocations: 100.8 kB / 0.4965 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.359e-05/0.3043, allocations: 3.938 kB / 0.4965 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.3046, allocations: 47.95 kB / 0.4966 GB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.09e-05/0.3046, allocations: 23.91 kB / 0.4966 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.3047, allocations: 4 kB / 0.4966 GB, free: 6.969 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001931/0.3049, allocations: 202 kB / 0.4968 GB, free: 6.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3049, allocations: 0 / 0.4968 GB, free: 6.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003614/0.3052, allocations: 79.75 kB / 0.4969 GB, free: 6.691 MB / 378.7 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001421/0.3054, allocations: 110.6 kB / 0.497 GB, free: 6.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009139/0.3063, allocations: 462.2 kB / 0.4974 GB, free: 6.098 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3063, allocations: 0 / 0.4974 GB, free: 6.098 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004401/0.3068, allocations: 254.7 kB / 0.4977 GB, free: 5.836 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.3071, allocations: 40.48 kB / 0.4977 GB, free: 5.797 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009687/0.3081, allocations: 0.596 MB / 0.4983 GB, free: 5.168 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.3084, allocations: 0.756 MB / 0.499 GB, free: 4.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.141e-05/0.3085, allocations: 23.44 kB / 0.499 GB, free: 4.367 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3085, allocations: 0 / 0.499 GB, free: 4.367 MB / 378.7 MB Notification: Performance of Templates: time 0.1494/0.4579, allocations: 4.708 MB / 0.5036 GB, free: 96.93 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches