Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 114.8 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 188.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 51.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2257, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003854/0.2296, allocations: 2.946 MB / 404.4 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.2308, allocations: 0.7285 MB / 405.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.2309, allocations: 4 kB / 405.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.2311, allocations: 47.5 kB / 405.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.2312, allocations: 103.2 kB / 405.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.2315, allocations: 111.8 kB / 405.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003887/0.2319, allocations: 422.4 kB / 405.8 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.2321, allocations: 131.2 kB / 405.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.2323, allocations: 155.4 kB / 406.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.2325, allocations: 167.3 kB / 406.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.473e-05/0.2326, allocations: 40 kB / 406.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.965e-05/0.2326, allocations: 40 kB / 406.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.486e-05/0.2327, allocations: 87.67 kB / 406.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.2329, allocations: 179.1 kB / 406.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.2333, allocations: 443.7 kB / 407 MB, free: 3.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2333, allocations: 0 / 407 MB, free: 3.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2333, allocations: 0 / 407 MB, free: 3.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.2333, allocations: 0 / 407 MB, free: 3.289 MB / 318.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.001207/0.2345, allocations: 0.677 MB / 407.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2345, allocations: 11.89 kB / 407.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.877e-05/0.2346, allocations: 44.47 kB / 407.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.235, allocations: 295.6 kB / 408 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.235, allocations: 16.94 kB / 408 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.349e-05/0.2351, allocations: 28.38 kB / 408.1 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006984/0.2358, allocations: 327.9 kB / 408.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2358, allocations: 4 kB / 408.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.2359, allocations: 8 kB / 408.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.2359, allocations: 8 kB / 408.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.2367, allocations: 290 kB / 408.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.2384, allocations: 1.154 MB / 409.8 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008088/0.2393, allocations: 246.6 kB / 410.1 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003387/0.2396, allocations: 104.8 kB / 410.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.2397, allocations: 4 kB / 410.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004332/0.2401, allocations: 184.5 kB / 410.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.2401, allocations: 0 / 410.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002263/0.2424, allocations: 0.6629 MB / 411 MB, free: 15.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/0.2424, allocations: 102.8 kB / 411.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.2427, allocations: 282.7 kB / 411.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.2428, allocations: 29.7 kB / 411.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.2429, allocations: 199.6 kB / 411.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.2429, allocations: 43.39 kB / 411.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.434e-05/0.243, allocations: 49.94 kB / 411.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.2432, allocations: 334.8 kB / 412 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.2435, allocations: 104.4 kB / 412.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.2439, allocations: 209.5 kB / 412.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006987/0.2446, allocations: 311.7 kB / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.2446, allocations: 0 / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00123/0.2459, allocations: 478.3 kB / 413.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.2459, allocations: 37.69 kB / 413.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2459, allocations: 7.938 kB / 413.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/0.2463, allocations: 84.86 kB / 413.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.2465, allocations: 47.91 kB / 413.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002569/0.2491, allocations: 2.001 MB / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.2494, allocations: 51.8 kB / 415.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.2495, allocations: 8.219 kB / 415.4 MB, free: 10.38 MB / 334.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.0001629/0.2496, allocations: 161.7 kB / 415.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.2497, allocations: 27.66 kB / 415.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.996e-05/0.2497, allocations: 25.83 kB / 415.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.2497, allocations: 0 / 415.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.2498, allocations: 0 / 415.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.2498, allocations: 0 / 415.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002911/0.2501, allocations: 329.3 kB / 415.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2501, allocations: 0 / 415.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.2502, allocations: 19.98 kB / 415.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002685/0.2505, allocations: 84.8 kB / 416 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.2505, allocations: 3.938 kB / 416 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.2528, allocations: 1.824 MB / 417.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2528, allocations: 0 / 417.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.2538, allocations: 365.4 kB / 418.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.382e-05/0.2539, allocations: 100.8 kB / 418.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/0.254, allocations: 7.984 kB / 418.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.2542, allocations: 35.91 kB / 418.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.378e-05/0.2543, allocations: 19.97 kB / 418.3 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.2543, allocations: 4 kB / 418.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.2545, allocations: 205.9 kB / 418.5 MB, free: 6.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2545, allocations: 4 kB / 418.5 MB, free: 6.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000369/0.2549, allocations: 71.84 kB / 418.6 MB, free: 6.867 MB / 334.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.0001341/0.255, allocations: 108.8 kB / 418.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009839/0.256, allocations: 433.8 kB / 419.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.256, allocations: 0 / 419.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004871/0.2565, allocations: 237.1 kB / 419.4 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.2569, allocations: 52.59 kB / 419.4 MB, free: 6.004 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00097/0.2578, allocations: 0.5018 MB / 419.9 MB, free: 5.473 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.2581, allocations: 0.7558 MB / 420.7 MB, free: 4.688 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.728e-05/0.2582, allocations: 19.44 kB / 420.7 MB, free: 4.672 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2582, allocations: 0 / 420.7 MB, free: 4.672 MB / 334.1 MB Notification: Performance of Templates: time 0.006727/0.265, allocations: 4.765 MB / 425.5 MB, free: 15.93 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches