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.001083/0.001083, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001187/0.001188, allocations: 191 kB / 18.67 MB, free: 4.434 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.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 43.94 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2434, allocations: 49.44 MB / 401.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00377/0.2472, allocations: 2.926 MB / 404.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2483, allocations: 0.7207 MB / 405.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2485, allocations: 4 kB / 405.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.2487, allocations: 47.52 kB / 405.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.2488, allocations: 107.1 kB / 405.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.2491, allocations: 115.8 kB / 405.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003939/0.2495, allocations: 414.4 kB / 405.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.2498, allocations: 127.3 kB / 405.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.2499, allocations: 159.4 kB / 406 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.2501, allocations: 167.3 kB / 406.2 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.795e-05/0.2502, allocations: 40 kB / 406.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.005e-05/0.2503, allocations: 43.94 kB / 406.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.445e-05/0.2503, allocations: 75.77 kB / 406.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.2505, allocations: 179.1 kB / 406.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003918/0.2509, allocations: 459.8 kB / 407 MB, free: 3.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2509, allocations: 0 / 407 MB, free: 3.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2509, allocations: 0 / 407 MB, free: 3.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.2509, allocations: 0 / 407 MB, free: 3.43 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.001229/0.2522, allocations: 0.6692 MB / 407.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.2522, allocations: 11.89 kB / 407.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.463e-05/0.2523, allocations: 40.47 kB / 407.7 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.2526, allocations: 295.6 kB / 408 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.2527, allocations: 28.94 kB / 408 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.081e-05/0.2527, allocations: 24.38 kB / 408.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006971/0.2534, allocations: 324 kB / 408.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.2534, allocations: 0 / 408.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/0.2535, allocations: 11.94 kB / 408.4 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.2535, allocations: 8 kB / 408.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007939/0.2543, allocations: 286 kB / 408.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.2561, allocations: 1.158 MB / 409.8 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008096/0.2569, allocations: 246.6 kB / 410.1 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003269/0.2572, allocations: 108.7 kB / 410.2 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2573, allocations: 4 kB / 410.2 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004564/0.2577, allocations: 175.9 kB / 410.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.2577, allocations: 4 kB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002271/0.26, allocations: 0.659 MB / 411 MB, free: 15.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.2601, allocations: 110.8 kB / 411.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.2604, allocations: 286.7 kB / 411.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.2604, allocations: 25.7 kB / 411.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.2605, allocations: 203.6 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.2606, allocations: 39.39 kB / 411.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.612e-05/0.2606, allocations: 49.94 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2608, allocations: 334.8 kB / 412 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.2611, allocations: 112.4 kB / 412.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003941/0.2615, allocations: 209.5 kB / 412.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006875/0.2622, allocations: 311.7 kB / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2622, allocations: 3.938 kB / 412.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00124/0.2635, allocations: 471.6 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.2635, allocations: 36.2 kB / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2635, allocations: 4 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003716/0.2639, allocations: 88.86 kB / 413.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.2641, allocations: 47.89 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00252/0.2667, allocations: 1.994 MB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/0.267, allocations: 56.03 kB / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/0.2671, allocations: 8 kB / 415.3 MB, free: 10.52 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.0001442/0.2672, allocations: 161.6 kB / 415.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/0.2672, allocations: 23.72 kB / 415.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.054e-05/0.2673, allocations: 25.84 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.2673, allocations: 7.984 kB / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.2673, allocations: 0 / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2673, allocations: 0 / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.2676, allocations: 333.2 kB / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2676, allocations: 0 / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.2678, allocations: 27.91 kB / 415.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002741/0.268, allocations: 80.8 kB / 416 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.2681, allocations: 4 kB / 416 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002167/0.2702, allocations: 1.812 MB / 417.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2703, allocations: 0 / 417.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.2713, allocations: 367.8 kB / 418.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.151e-05/0.2714, allocations: 104.8 kB / 418.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.2715, allocations: 4 kB / 418.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.2717, allocations: 35.95 kB / 418.3 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.476e-05/0.2718, allocations: 15.98 kB / 418.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.2718, allocations: 8 kB / 418.3 MB, free: 7.281 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.272, allocations: 205.9 kB / 418.5 MB, free: 7.082 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.272, allocations: 0 / 418.5 MB, free: 7.082 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004028/0.2724, allocations: 75.84 kB / 418.6 MB, free: 7.008 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.0001387/0.2726, allocations: 103.2 kB / 418.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.2736, allocations: 438.2 kB / 419.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2736, allocations: 4.188 kB / 419.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004662/0.2741, allocations: 234.5 kB / 419.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.2744, allocations: 60.19 kB / 419.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.2755, allocations: 0.5071 MB / 419.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.2758, allocations: 0.7518 MB / 420.7 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.13e-05/0.2759, allocations: 23.44 kB / 420.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2759, allocations: 0 / 420.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of Templates: time 0.006387/0.2823, allocations: 4.8 MB / 425.5 MB, free: 16 kB / 334.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