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.001269/0.001268, allocations: 97.52 kB / 16.3 MB, free: 5.992 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.001301/0.001301, allocations: 181.7 kB / 17.2 MB, free: 5.906 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.426/1.426, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002665, allocations: 10.47 kB / 300.7 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1127, allocations: 50.41 MB / 351.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.003922/0.1166, allocations: 3.592 MB / 354.7 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.1188, allocations: 1.2 MB / 355.9 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003302/0.1192, allocations: 12 kB / 355.9 MB, free: 6.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002868/0.1195, allocations: 111.2 kB / 356.1 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004008/0.1199, allocations: 223.3 kB / 356.3 MB, free: 6.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003511/0.1203, allocations: 147.8 kB / 356.4 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005297/0.1208, allocations: 0.5035 MB / 356.9 MB, free: 5.883 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003496/0.1212, allocations: 199.9 kB / 357.1 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.1214, allocations: 239.1 kB / 357.3 MB, free: 5.449 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.1217, allocations: 262.8 kB / 357.6 MB, free: 5.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/0.1218, allocations: 36 kB / 357.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.197e-05/0.1219, allocations: 39.94 kB / 357.7 MB, free: 5.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.809e-05/0.122, allocations: 111.5 kB / 357.8 MB, free: 5.008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.1221, allocations: 141.4 kB / 357.9 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.1225, allocations: 0.5258 MB / 358.5 MB, free: 4.336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.1225, allocations: 0 / 358.5 MB, free: 4.336 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1225, allocations: 0 / 358.5 MB, free: 4.336 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.1225, allocations: 3.938 kB / 358.5 MB, free: 4.332 MB / 286.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.001423/0.124, allocations: 0.8651 MB / 359.3 MB, free: 3.418 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.124, allocations: 8.031 kB / 359.3 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.1241, allocations: 71.16 kB / 359.4 MB, free: 3.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/0.1246, allocations: 388.8 kB / 359.8 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.1247, allocations: 41.31 kB / 359.8 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.764e-05/0.1247, allocations: 56 kB / 359.9 MB, free: 2.824 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009292/0.1257, allocations: 0.5378 MB / 360.4 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.1257, allocations: 7.953 kB / 360.4 MB, free: 2.266 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.324e-05/0.1258, allocations: 24 kB / 360.4 MB, free: 2.242 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1258, allocations: 16 kB / 360.5 MB, free: 2.227 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008372/0.1266, allocations: 429 kB / 360.9 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.1296, allocations: 1.859 MB / 362.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007511/0.1303, allocations: 0.5356 MB / 363.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1304, allocations: 8.328 kB / 363.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004946/0.1309, allocations: 282.2 kB / 363.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.485e-06/0.1309, allocations: 4 kB / 363.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.003317/0.1342, allocations: 1.185 MB / 364.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.1343, allocations: 239.3 kB / 365 MB, free: 13.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.1348, allocations: 425.8 kB / 365.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.1348, allocations: 33.7 kB / 365.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.135, allocations: 312.1 kB / 365.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.1352, allocations: 138 kB / 365.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.007e-05/0.1352, allocations: 8 kB / 365.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1353, allocations: 358.8 kB / 366.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.1356, allocations: 153 kB / 366.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.136, allocations: 325.5 kB / 366.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.1364, allocations: 181.5 kB / 366.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.1364, allocations: 4 kB / 366.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001547/0.138, allocations: 0.7446 MB / 367.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.138, allocations: 4 kB / 367.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.138, allocations: 4 kB / 367.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005175/0.1385, allocations: 160.8 kB / 367.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.1389, allocations: 87.83 kB / 367.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003871/0.1428, allocations: 2.577 MB / 370.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.1433, allocations: 87.47 kB / 370.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.1433, allocations: 20 kB / 370.6 MB, free: 7.633 MB / 302.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,$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 (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002686/0.1436, allocations: 185.7 kB / 370.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.894e-05/0.1437, allocations: 47.44 kB / 370.8 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.144e-05/0.1438, allocations: 56.81 kB / 370.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1438, allocations: 4 kB / 370.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1438, allocations: 0 / 370.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.1438, allocations: 3.984 kB / 370.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/0.1459, allocations: 1.238 MB / 372.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.146, allocations: 0 / 372.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.1462, allocations: 47.97 kB / 372.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004312/0.1466, allocations: 158.9 kB / 372.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.1467, allocations: 15.98 kB / 372.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00368/0.1503, allocations: 2.536 MB / 374.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1504, allocations: 0 / 374.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.1521, allocations: 0.9016 MB / 375.7 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.1523, allocations: 124.5 kB / 375.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.076e-05/0.1523, allocations: 11.98 kB / 375.9 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003387/0.1527, allocations: 52.03 kB / 375.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/0.1528, allocations: 31.89 kB / 375.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.1528, allocations: 8 kB / 376 MB, free: 1.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002994/0.1531, allocations: 299.1 kB / 376.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1531, allocations: 4 kB / 376.3 MB, free: 1.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005838/0.1537, allocations: 179.5 kB / 376.4 MB, free: 1.512 MB / 302.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 (26): * Single equations (assignments): 24 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.000167/0.1539, allocations: 107.2 kB / 376.5 MB, free: 1.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.1553, allocations: 0.651 MB / 377.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1553, allocations: 4.062 kB / 377.2 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008847/0.1562, allocations: 458.3 kB / 377.6 MB, free: 276 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/0.1566, allocations: 73.42 kB / 377.7 MB, free: 200 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.1581, allocations: 1.101 MB / 378.8 MB, free: 15.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.1585, allocations: 0.8676 MB / 379.7 MB, free: 14.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001834/0.1587, allocations: 56.53 kB / 379.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.059e-05/0.1587, allocations: 31.44 kB / 379.8 MB, free: 14.09 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1587, allocations: 0 / 379.8 MB, free: 14.09 MB / 318.1 MB Notification: Performance of Templates: time 0.01015/0.1689, allocations: 6.041 MB / 385.8 MB, free: 8.105 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches