Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 192.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007659/0.0007659, allocations: 104.5 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002376, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1995, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.002909/0.2024, allocations: 3.869 MB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2039, allocations: 1.19 MB / 413.1 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.2041, allocations: 11.94 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002799/0.2044, allocations: 113.9 kB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.2047, allocations: 166.7 kB / 413.4 MB, free: 22.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002972/0.205, allocations: 146.6 kB / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004686/0.2055, allocations: 0.7121 MB / 414.3 MB, free: 21.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002927/0.2058, allocations: 230.2 kB / 414.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002453/0.2061, allocations: 243 kB / 414.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.2063, allocations: 274.7 kB / 415 MB, free: 20.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.509e-05/0.2064, allocations: 32 kB / 415 MB, free: 20.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.81e-05/0.2065, allocations: 36 kB / 415.1 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.115e-05/0.2065, allocations: 115.4 kB / 415.2 MB, free: 20.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.2067, allocations: 308.2 kB / 415.5 MB, free: 20.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.2071, allocations: 0.5462 MB / 416 MB, free: 19.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2071, allocations: 0 / 416 MB, free: 19.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2071, allocations: 4 kB / 416 MB, free: 19.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.2071, allocations: 0 / 416 MB, free: 19.72 MB / 298.7 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.001177/0.2083, allocations: 0.8572 MB / 416.9 MB, free: 18.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.2083, allocations: 8.031 kB / 416.9 MB, free: 18.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.2086, allocations: 104.1 kB / 417 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.209, allocations: 401.9 kB / 417.4 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.209, allocations: 41.69 kB / 417.4 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.094e-05/0.2091, allocations: 56.31 kB / 417.5 MB, free: 18.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.2099, allocations: 0.5536 MB / 418 MB, free: 17.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.2099, allocations: 0 / 418 MB, free: 17.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.469e-05/0.21, allocations: 24 kB / 418 MB, free: 17.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.21, allocations: 12 kB / 418.1 MB, free: 17.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007414/0.2107, allocations: 437 kB / 418.5 MB, free: 17.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002356/0.2131, allocations: 1.855 MB / 420.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006349/0.2138, allocations: 0.5322 MB / 420.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007604/0.2145, allocations: 437.2 kB / 421.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.2146, allocations: 12.27 kB / 421.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.215, allocations: 302.2 kB / 421.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.675e-06/0.215, allocations: 0 / 421.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.003373/0.2184, allocations: 1.376 MB / 423 MB, free: 12.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.2185, allocations: 235.3 kB / 423.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/0.2188, allocations: 429.8 kB / 423.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.2189, allocations: 41.64 kB / 423.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.219, allocations: 308.1 kB / 424 MB, free: 11.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.907e-05/0.2191, allocations: 141.9 kB / 424.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.178e-05/0.2191, allocations: 12 kB / 424.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.562e-05/0.2192, allocations: 358.8 kB / 424.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.2195, allocations: 153 kB / 424.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.2199, allocations: 335.2 kB / 425 MB, free: 10.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006122/0.2205, allocations: 455.5 kB / 425.4 MB, free: 9.832 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2205, allocations: 4 kB / 425.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001462/0.222, allocations: 0.814 MB / 426.2 MB, free: 9.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.222, allocations: 8 kB / 426.2 MB, free: 8.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.222, allocations: 7.984 kB / 426.2 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006074/0.2226, allocations: 216.8 kB / 426.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.2229, allocations: 75.84 kB / 426.5 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/0.2266, allocations: 2.921 MB / 429.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/0.227, allocations: 95.41 kB / 429.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.2271, allocations: 23.98 kB / 429.6 MB, free: 5.527 MB / 298.7 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,$PRE.rootMeanSquare.mean.y_last,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 (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 {2 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002034/0.2273, allocations: 181.7 kB / 429.7 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.349e-05/0.2273, allocations: 47.44 kB / 429.8 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.462e-05/0.2274, allocations: 56.86 kB / 429.8 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2274, allocations: 7.984 kB / 429.8 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.2274, allocations: 4 kB / 429.8 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2275, allocations: 0 / 429.8 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.2293, allocations: 1.312 MB / 431.2 MB, free: 3.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2293, allocations: 0 / 431.2 MB, free: 3.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.2295, allocations: 35.92 kB / 431.2 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005225/0.23, allocations: 221.8 kB / 431.4 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.2301, allocations: 15.94 kB / 431.4 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003227/0.2333, allocations: 2.813 MB / 434.2 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2333, allocations: 0 / 434.2 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00179/0.2351, allocations: 0.9682 MB / 435.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.2352, allocations: 128.6 kB / 435.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.577e-05/0.2353, allocations: 19.92 kB / 435.3 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003459/0.2357, allocations: 44.06 kB / 435.4 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/0.2358, allocations: 43.89 kB / 435.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.2358, allocations: 12 kB / 435.4 MB, free: 15.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003148/0.2361, allocations: 299.1 kB / 435.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2361, allocations: 0 / 435.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005955/0.2367, allocations: 183.6 kB / 435.9 MB, free: 14.92 MB / 314.7 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 (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 {3 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001537/0.2369, allocations: 118.3 kB / 436 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.2383, allocations: 0.688 MB / 436.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2384, allocations: 0 / 436.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006902/0.2391, allocations: 429 kB / 437.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.2396, allocations: 81.45 kB / 437.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.2411, allocations: 1.132 MB / 438.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.2415, allocations: 0.8706 MB / 439.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.731e-05/0.2416, allocations: 35.42 kB / 439.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2416, allocations: 0 / 439.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of Templates: time 0.01041/0.252, allocations: 8.278 MB / 447.5 MB, free: 3.238 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches