Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 112.1 kB / 17.71 MB, free: 5.258 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.001028/0.001028, allocations: 192.1 kB / 18.64 MB, free: 4.34 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.283/1.283, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 55.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2527, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005179/0.258, allocations: 4.448 MB / 405.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.2601, allocations: 1.207 MB / 407.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002792/0.2604, allocations: 15.94 kB / 407.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004197/0.2609, allocations: 142.7 kB / 407.2 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004168/0.2613, allocations: 198.3 kB / 407.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.2617, allocations: 195.6 kB / 407.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006549/0.2624, allocations: 0.763 MB / 408.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003688/0.2627, allocations: 266.5 kB / 408.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003293/0.2631, allocations: 290.9 kB / 408.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003362/0.2634, allocations: 322.5 kB / 409.2 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.065e-05/0.2635, allocations: 64 kB / 409.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.01e-05/0.2636, allocations: 68 kB / 409.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.2637, allocations: 143.5 kB / 409.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002868/0.264, allocations: 342.3 kB / 409.8 MB, free: 436 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006069/0.2647, allocations: 0.7407 MB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2647, allocations: 4 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2647, allocations: 0 / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.2647, allocations: 3.984 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001587/0.2663, allocations: 0.9468 MB / 411.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.2663, allocations: 15.89 kB / 411.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.2665, allocations: 72.09 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.2669, allocations: 413.9 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.267, allocations: 41.69 kB / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-05/0.2671, allocations: 56.36 kB / 412.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009109/0.268, allocations: 0.5456 MB / 412.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.268, allocations: 4 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.2681, allocations: 31.94 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2681, allocations: 12 kB / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008375/0.2689, allocations: 421 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002748/0.2717, allocations: 1.805 MB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007889/0.2725, allocations: 0.5275 MB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009285/0.2734, allocations: 441 kB / 415.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.2735, allocations: 4.328 kB / 415.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005106/0.274, allocations: 298.2 kB / 416.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 4.538e-06/0.274, allocations: 3.984 kB / 416.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.003936/0.278, allocations: 1.302 MB / 417.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.2781, allocations: 239.3 kB / 417.7 MB, free: 8.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004824/0.2786, allocations: 421.9 kB / 418.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.906e-05/0.2786, allocations: 37.7 kB / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002702/0.2789, allocations: 316 kB / 418.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.279, allocations: 142 kB / 418.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.2792, allocations: 98.09 kB / 418.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.2793, allocations: 358.8 kB / 419 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.2797, allocations: 145 kB / 419.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004408/0.2801, allocations: 325.6 kB / 419.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007222/0.2809, allocations: 439.2 kB / 419.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.2809, allocations: 7.875 kB / 419.9 MB, free: 5.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001736/0.2826, allocations: 0.7829 MB / 420.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.2827, allocations: 12.06 kB / 420.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.2827, allocations: 7.938 kB / 420.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006962/0.2834, allocations: 218.9 kB / 421 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.2837, allocations: 67.91 kB / 421 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005459/0.2891, allocations: 3.127 MB / 424.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000585/0.2898, allocations: 87.45 kB / 424.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/0.2898, allocations: 20 kB / 424.3 MB, free: 1.324 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003026/0.2901, allocations: 181.7 kB / 424.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.237e-05/0.2902, allocations: 47.44 kB / 424.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.2903, allocations: 60.8 kB / 424.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2903, allocations: 8 kB / 424.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2903, allocations: 0 / 424.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2903, allocations: 0 / 424.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002214/0.2926, allocations: 1.276 MB / 425.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.2926, allocations: 0 / 425.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.2927, allocations: 35.92 kB / 425.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000604/0.2934, allocations: 220.6 kB / 426.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.2934, allocations: 8.047 kB / 426.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004418/0.2978, allocations: 3.044 MB / 429.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2978, allocations: 4 kB / 429.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.2999, allocations: 0.9419 MB / 430.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001588/0.3, allocations: 124.5 kB / 430.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.926e-05/0.3001, allocations: 16 kB / 430.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003833/0.3005, allocations: 40.03 kB / 430.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.3006, allocations: 31.95 kB / 430.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.3007, allocations: 15.98 kB / 430.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004042/0.3011, allocations: 303.1 kB / 430.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3011, allocations: 0 / 430.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007538/0.3018, allocations: 187.5 kB / 430.8 MB, free: 10.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001936/0.302, allocations: 111.7 kB / 430.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.3038, allocations: 0.6802 MB / 431.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3038, allocations: 0.75 kB / 431.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008069/0.3046, allocations: 420.4 kB / 432 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006238/0.3053, allocations: 77.45 kB / 432 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.3074, allocations: 0.9551 MB / 433 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.308, allocations: 0.859 MB / 433.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.3081, allocations: 31.44 kB / 433.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of SimCode: time 1.413e-06/0.3081, allocations: 3.938 kB / 433.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of Templates: time 0.01358/0.3217, allocations: 8.289 MB / 442.2 MB, free: 15.07 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches