Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001602/0.001602, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.465/1.465, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 69.05 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09989, allocations: 50.54 MB / 358.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004512/0.1044, allocations: 2.938 MB / 361.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.1058, allocations: 0.7635 MB / 362.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.106, allocations: 7.938 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.1062, allocations: 55.5 kB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.1064, allocations: 103.2 kB / 362.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002892/0.1067, allocations: 111.8 kB / 362.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004493/0.1072, allocations: 418.4 kB / 362.8 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.1074, allocations: 127.2 kB / 363 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.1076, allocations: 159.4 kB / 363.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.1078, allocations: 171.2 kB / 363.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.37e-05/0.1079, allocations: 40 kB / 363.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.635e-05/0.108, allocations: 40 kB / 363.4 MB, free: 9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.475e-05/0.1081, allocations: 79.69 kB / 363.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1083, allocations: 175.2 kB / 363.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004432/0.1087, allocations: 450.8 kB / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1087, allocations: 0 / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1087, allocations: 3.938 kB / 364.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1087, allocations: 0 / 364.1 MB, free: 8.305 MB / 302.1 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.001337/0.1101, allocations: 0.6808 MB / 364.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.1101, allocations: 8.031 kB / 364.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.872e-05/0.1102, allocations: 36.56 kB / 364.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.1106, allocations: 295.6 kB / 365.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.1106, allocations: 16.94 kB / 365.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.1107, allocations: 24.38 kB / 365.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007735/0.1115, allocations: 335.9 kB / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1115, allocations: 0 / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.1115, allocations: 12 kB / 365.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1116, allocations: 4 kB / 365.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008424/0.1124, allocations: 282.1 kB / 365.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.1144, allocations: 1.15 MB / 366.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008952/0.1153, allocations: 262.5 kB / 367.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003611/0.1157, allocations: 104.8 kB / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.1157, allocations: 0 / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000557/0.1163, allocations: 181.9 kB / 367.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.1163, allocations: 0 / 367.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002425/0.1187, allocations: 0.6629 MB / 368.1 MB, free: 4.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.1188, allocations: 110.8 kB / 368.2 MB, free: 3.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.1192, allocations: 286.5 kB / 368.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.1192, allocations: 29.7 kB / 368.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.1194, allocations: 199.6 kB / 368.7 MB, free: 3.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.1195, allocations: 43.39 kB / 368.7 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.1196, allocations: 53.84 kB / 368.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1197, allocations: 338.8 kB / 369.1 MB, free: 2.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.1201, allocations: 104.4 kB / 369.2 MB, free: 2.824 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004428/0.1206, allocations: 202.5 kB / 369.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007863/0.1214, allocations: 314.3 kB / 369.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/0.1214, allocations: 4 kB / 369.7 MB, free: 2.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001352/0.1228, allocations: 471.5 kB / 370.2 MB, free: 1.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/0.1228, allocations: 33.77 kB / 370.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1228, allocations: 4 kB / 370.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004003/0.1232, allocations: 88.73 kB / 370.3 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.1235, allocations: 43.97 kB / 370.3 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1617/0.2852, allocations: 1.996 MB / 372.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004271/0.2857, allocations: 52.84 kB / 372.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.536e-05/0.2857, allocations: 13.05 kB / 372.4 MB, free: 18.93 MB / 302.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.2859, allocations: 147.7 kB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.286, allocations: 25.7 kB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.452e-05/0.286, allocations: 25.41 kB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.286, allocations: 1.344 kB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.286, allocations: 1.266 kB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.2861, allocations: 5.031 kB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.2864, allocations: 324.2 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.2864, allocations: 1.469 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.2866, allocations: 27.14 kB / 373 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003027/0.2869, allocations: 81.94 kB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2869, allocations: 4.516 kB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.289, allocations: 1.814 MB / 374.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.289, allocations: 0.5938 kB / 374.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.2901, allocations: 364.1 kB / 375.2 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.482e-05/0.2901, allocations: 102.2 kB / 375.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.005e-05/0.2902, allocations: 13.88 kB / 375.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.2904, allocations: 30.34 kB / 375.4 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.982e-05/0.2905, allocations: 24.38 kB / 375.4 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.2906, allocations: 3.828 kB / 375.4 MB, free: 17.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.2908, allocations: 200.4 kB / 375.6 MB, free: 17.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2908, allocations: 0 / 375.6 MB, free: 17.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004054/0.2912, allocations: 85.03 kB / 375.7 MB, free: 17.04 MB / 302.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) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001084/0.2913, allocations: 107 kB / 375.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.2923, allocations: 440.2 kB / 376.2 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2923, allocations: 1.219 kB / 376.2 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004703/0.2928, allocations: 232.9 kB / 376.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2932, allocations: 53.16 kB / 376.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.2943, allocations: 0.5064 MB / 377 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.2945, allocations: 0.7547 MB / 377.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.786e-05/0.2946, allocations: 25.31 kB / 377.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2946, allocations: 0 / 377.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Templates: time 0.008107/0.3027, allocations: 4.749 MB / 382.5 MB, free: 15.32 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches