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.001023/0.001023, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 226.6 MB / 244.3 MB, free: 6.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008215/0.0008214, allocations: 93.33 kB / 296.4 MB, free: 6.789 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.0002652, allocations: 8 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.225, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.002969/0.228, allocations: 3.87 MB / 411.4 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.2295, allocations: 1.199 MB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.2297, allocations: 8 kB / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.23, allocations: 111.1 kB / 412.7 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.2303, allocations: 173 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.2306, allocations: 147.3 kB / 413 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.2311, allocations: 0.6927 MB / 413.7 MB, free: 21.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.2314, allocations: 207.9 kB / 413.9 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.2316, allocations: 239 kB / 414.1 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.2319, allocations: 270.7 kB / 414.4 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.719e-05/0.2319, allocations: 36 kB / 414.4 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.232, allocations: 36 kB / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.756e-05/0.2321, allocations: 115.5 kB / 414.6 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.456e-05/0.2322, allocations: 137.4 kB / 414.7 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.2325, allocations: 0.5462 MB / 415.3 MB, free: 20 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2326, allocations: 0 / 415.3 MB, free: 20 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2326, allocations: 0 / 415.3 MB, free: 20 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2326, allocations: 4 kB / 415.3 MB, free: 20 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.001226/0.2338, allocations: 0.8609 MB / 416.1 MB, free: 19.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.2338, allocations: 16.03 kB / 416.1 MB, free: 19.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002597/0.2341, allocations: 95.12 kB / 416.2 MB, free: 18.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.2345, allocations: 388.9 kB / 416.6 MB, free: 18.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.2345, allocations: 45.31 kB / 416.7 MB, free: 18.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.727e-05/0.2346, allocations: 52 kB / 416.7 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000805/0.2354, allocations: 0.5495 MB / 417.3 MB, free: 17.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.2354, allocations: 7.938 kB / 417.3 MB, free: 17.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.2355, allocations: 20 kB / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2355, allocations: 15.94 kB / 417.3 MB, free: 17.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007254/0.2362, allocations: 433 kB / 417.7 MB, free: 17.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.2386, allocations: 1.855 MB / 419.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006553/0.2392, allocations: 0.5293 MB / 420.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007777/0.24, allocations: 441.1 kB / 420.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.2401, allocations: 8.266 kB / 420.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000429/0.2405, allocations: 310.1 kB / 420.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.773e-06/0.2405, allocations: 0 / 420.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.003495/0.244, allocations: 1.345 MB / 422.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.2441, allocations: 235.3 kB / 422.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003467/0.2444, allocations: 437.8 kB / 422.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.2445, allocations: 33.7 kB / 422.9 MB, free: 12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.2446, allocations: 316 kB / 423.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.403e-05/0.2447, allocations: 138 kB / 423.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.2447, allocations: 12 kB / 423.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.218e-05/0.2448, allocations: 358.7 kB / 423.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.2451, allocations: 157 kB / 423.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.2454, allocations: 329.6 kB / 424.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.2457, allocations: 197.5 kB / 424.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2458, allocations: 0 / 424.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001463/0.2472, allocations: 0.8152 MB / 425.2 MB, free: 9.621 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2473, allocations: 8 kB / 425.2 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2473, allocations: 4 kB / 425.2 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000605/0.2479, allocations: 222.2 kB / 425.4 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.2481, allocations: 75.89 kB / 425.5 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003716/0.2519, allocations: 2.933 MB / 428.4 MB, free: 6.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.2523, allocations: 83.56 kB / 428.5 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.2523, allocations: 20 kB / 428.5 MB, free: 6.156 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.0001926/0.2525, allocations: 178.2 kB / 428.7 MB, free: 5.973 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.2526, allocations: 51.44 kB / 428.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.547e-05/0.2527, allocations: 56.91 kB / 428.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.2527, allocations: 7.953 kB / 428.8 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.2527, allocations: 3.938 kB / 428.8 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2527, allocations: 4 kB / 428.8 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.2546, allocations: 1.305 MB / 430.1 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2546, allocations: 0 / 430.1 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.2548, allocations: 39.91 kB / 430.1 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005349/0.2553, allocations: 221.6 kB / 430.4 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.2553, allocations: 4 kB / 430.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/0.2586, allocations: 2.82 MB / 433.2 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2586, allocations: 80 / 433.2 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.2603, allocations: 0.9753 MB / 434.2 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.313e-05/0.2603, allocations: 128.4 kB / 434.3 MB, free: 132 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.382e-05/0.2604, allocations: 8 kB / 434.3 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003355/0.2607, allocations: 56.03 kB / 434.4 MB, free: 68 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.2608, allocations: 35.91 kB / 434.4 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.2608, allocations: 11.98 kB / 434.4 MB, free: 20 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003552/0.2612, allocations: 299.2 kB / 434.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2612, allocations: 0 / 434.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006/0.2618, allocations: 187.6 kB / 434.9 MB, free: 15.54 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.0001688/0.262, allocations: 107.9 kB / 435 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.2635, allocations: 0.6959 MB / 435.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2635, allocations: 0 / 435.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006991/0.2642, allocations: 433.1 kB / 436.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005148/0.2648, allocations: 85.08 kB / 436.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.2664, allocations: 1.136 MB / 437.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.2668, allocations: 0.8668 MB / 438.2 MB, free: 12.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.046e-05/0.2669, allocations: 31.44 kB / 438.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2669, allocations: 4 kB / 438.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of Templates: time 0.01043/0.2773, allocations: 8.291 MB / 446.5 MB, free: 3.859 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