Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 97.31 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 205.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002614/0.0002614, allocations: 8 kB / 306.6 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1321, allocations: 51.49 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.004599/0.1368, allocations: 3.618 MB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.1394, allocations: 1.228 MB / 362.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003867/0.1399, allocations: 8 kB / 362.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004165/0.1403, allocations: 111.2 kB / 363 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005324/0.1408, allocations: 235.3 kB / 363.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.1414, allocations: 143.8 kB / 363.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006451/0.1421, allocations: 0.5072 MB / 363.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004677/0.1425, allocations: 211.8 kB / 364.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004246/0.143, allocations: 239.1 kB / 364.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.1435, allocations: 270.8 kB / 364.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.328e-05/0.1435, allocations: 32 kB / 364.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.1437, allocations: 43.94 kB / 364.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.1438, allocations: 111.6 kB / 364.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.144, allocations: 137.4 kB / 364.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006432/0.1447, allocations: 0.5416 MB / 365.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1447, allocations: 0 / 365.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1447, allocations: 0 / 365.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.1447, allocations: 0 / 365.5 MB, free: 6.68 MB / 302.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.001633/0.1464, allocations: 0.8649 MB / 366.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.1464, allocations: 8.031 kB / 366.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003225/0.1468, allocations: 95.12 kB / 366.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/0.1473, allocations: 392.9 kB / 366.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.1474, allocations: 45.31 kB / 366.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.148e-05/0.1475, allocations: 59.92 kB / 366.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009754/0.1484, allocations: 0.5456 MB / 367.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.1485, allocations: 0 / 367.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/0.1485, allocations: 24 kB / 367.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.1486, allocations: 16 kB / 367.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008717/0.1494, allocations: 429 kB / 367.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003087/0.1525, allocations: 1.863 MB / 369.8 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008235/0.1534, allocations: 0.5337 MB / 370.3 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.1534, allocations: 4.328 kB / 370.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005776/0.154, allocations: 302.1 kB / 370.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.934e-06/0.154, allocations: 0 / 370.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.003537/0.1576, allocations: 1.181 MB / 371.8 MB, free: 48 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2675/0.4251, allocations: 236 kB / 372 MB, free: 19.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007851/0.4259, allocations: 430.1 kB / 372.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.426, allocations: 36.7 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.4263, allocations: 309.9 kB / 372.8 MB, free: 19.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.4264, allocations: 133.8 kB / 372.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.4264, allocations: 8.219 kB / 372.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.4265, allocations: 359.4 kB / 373.3 MB, free: 18.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004088/0.427, allocations: 153.5 kB / 373.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.4274, allocations: 316.7 kB / 373.8 MB, free: 18.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004097/0.4278, allocations: 194.1 kB / 373.9 MB, free: 18.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.4278, allocations: 0.7812 kB / 373.9 MB, free: 18.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00209/0.4299, allocations: 0.7477 MB / 374.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.43, allocations: 7.781 kB / 374.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.43, allocations: 3.781 kB / 374.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006764/0.4307, allocations: 159.6 kB / 374.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/0.4311, allocations: 88.28 kB / 374.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004219/0.4353, allocations: 2.565 MB / 377.5 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006185/0.436, allocations: 90.78 kB / 377.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.436, allocations: 23.66 kB / 377.6 MB, free: 17.08 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.0002672/0.4363, allocations: 183.5 kB / 377.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.901e-05/0.4364, allocations: 53.52 kB / 377.9 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.945e-05/0.4364, allocations: 57.31 kB / 377.9 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.4365, allocations: 8.125 kB / 377.9 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4365, allocations: 0 / 377.9 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.4365, allocations: 5.172 kB / 377.9 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.4387, allocations: 1.223 MB / 379.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4388, allocations: 0 / 379.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000231/0.439, allocations: 57.91 kB / 379.2 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004836/0.4395, allocations: 162 kB / 379.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.4395, allocations: 7.828 kB / 379.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003799/0.4433, allocations: 2.54 MB / 381.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4433, allocations: 5.547 kB / 381.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.4453, allocations: 0.8941 MB / 382.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.4455, allocations: 130.1 kB / 382.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.866e-05/0.4455, allocations: 12.3 kB / 382.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003614/0.4459, allocations: 48.48 kB / 383 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.446, allocations: 33.16 kB / 383 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.4461, allocations: 19.7 kB / 383 MB, free: 13.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003886/0.4465, allocations: 297.4 kB / 383.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4465, allocations: 0 / 383.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007963/0.4473, allocations: 170.3 kB / 383.5 MB, free: 13.7 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.000183/0.4475, allocations: 116.8 kB / 383.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.4491, allocations: 0.6474 MB / 384.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4491, allocations: 0 / 384.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.4501, allocations: 464.4 kB / 384.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.4506, allocations: 77.88 kB / 384.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.4523, allocations: 1.096 MB / 385.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.4527, allocations: 0.8792 MB / 386.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.4529, allocations: 54.56 kB / 386.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.966e-05/0.453, allocations: 32.31 kB / 386.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.453, allocations: 0 / 386.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01238/0.4654, allocations: 6.113 MB / 393 MB, free: 9.711 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches