Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001701/0.001701, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001862/0.001862, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 246.3 MB, free: 9.121 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 66.77 kB / 306.3 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1218, allocations: 50.54 MB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005105/0.127, allocations: 3.415 MB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.1288, allocations: 0.8689 MB / 361.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.129, allocations: 8 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002163/0.1293, allocations: 47.61 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.1295, allocations: 99.22 kB / 361.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000337/0.1298, allocations: 131.8 kB / 361.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.1304, allocations: 478 kB / 361.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003236/0.1307, allocations: 149.4 kB / 362 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002925/0.131, allocations: 167.4 kB / 362.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.1312, allocations: 191 kB / 362.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.159e-05/0.1313, allocations: 28 kB / 362.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.1314, allocations: 35.98 kB / 362.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.901e-05/0.1315, allocations: 79.62 kB / 362.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.1317, allocations: 195 kB / 362.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005546/0.1323, allocations: 0.5414 MB / 363.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1323, allocations: 4 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1323, allocations: 0 / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1323, allocations: 4 kB / 363.3 MB, free: 7.781 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001286/0.1336, allocations: 0.7019 MB / 364 MB, free: 7.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1336, allocations: 8.031 kB / 364 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002134/0.1339, allocations: 56.36 kB / 364 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.1343, allocations: 316.6 kB / 364.4 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.1343, allocations: 25.38 kB / 364.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.259e-05/0.1344, allocations: 40.12 kB / 364.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007358/0.1351, allocations: 382.2 kB / 364.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1352, allocations: 0 / 364.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.1352, allocations: 19.98 kB / 364.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.1352, allocations: 12 kB / 364.8 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/0.1359, allocations: 299.8 kB / 365.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.1383, allocations: 1.447 MB / 366.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006772/0.139, allocations: 241 kB / 366.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.1393, allocations: 92.81 kB / 366.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.1393, allocations: 8 kB / 366.9 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.1394, allocations: 38.5 kB / 366.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.1394, allocations: 0 / 366.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002316/0.1417, allocations: 0.7587 MB / 367.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.1417, allocations: 51.41 kB / 367.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004374/0.1422, allocations: 324.4 kB / 368.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.1422, allocations: 25.7 kB / 368.1 MB, free: 2.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1424, allocations: 227.7 kB / 368.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.471e-05/0.1425, allocations: 63.17 kB / 368.4 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-05/0.1426, allocations: 53.61 kB / 368.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1428, allocations: 334.8 kB / 368.7 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.143, allocations: 79.95 kB / 368.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.1433, allocations: 161.4 kB / 369 MB, free: 1.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004911/0.1438, allocations: 249.2 kB / 369.2 MB, free: 1.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.1438, allocations: 4 kB / 369.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001024/0.1448, allocations: 425.3 kB / 369.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.1449, allocations: 10.81 kB / 369.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1449, allocations: 7.938 kB / 369.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005028/0.1454, allocations: 117.6 kB / 369.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.1456, allocations: 39.97 kB / 369.8 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.231/0.3765, allocations: 3.252 MB / 373.1 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/0.3768, allocations: 41.08 kB / 373.1 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.3769, allocations: 11.86 kB / 373.1 MB, free: 17.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.3771, allocations: 157.1 kB / 373.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.308e-05/0.3771, allocations: 27.5 kB / 373.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.93e-05/0.3772, allocations: 35.11 kB / 373.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3772, allocations: 5.688 kB / 373.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3772, allocations: 2.594 kB / 373.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3772, allocations: 2.016 kB / 373.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004215/0.3777, allocations: 366.9 kB / 373.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3777, allocations: 0 / 373.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.374e-05/0.3778, allocations: 14.25 kB / 373.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003898/0.3782, allocations: 113.3 kB / 373.8 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.3782, allocations: 1.656 kB / 373.8 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002821/0.381, allocations: 3.178 MB / 377 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.381, allocations: 0 / 377 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008668/0.3819, allocations: 437.4 kB / 377.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.813e-05/0.382, allocations: 106 kB / 377.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.382, allocations: 5.578 kB / 377.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.3823, allocations: 26.27 kB / 377.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.3823, allocations: 15.75 kB / 377.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.3823, allocations: 4.406 kB / 377.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.3826, allocations: 226.7 kB / 377.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3826, allocations: 3.938 kB / 377.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005383/0.3831, allocations: 93.72 kB / 377.9 MB, free: 14.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001345/0.3833, allocations: 105.2 kB / 378 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.3843, allocations: 0.5114 MB / 378.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3844, allocations: 0.5 kB / 378.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.3847, allocations: 338.8 kB / 378.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.3852, allocations: 51.73 kB / 378.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.3864, allocations: 0.7034 MB / 379.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.3867, allocations: 0.7832 MB / 380.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.3868, allocations: 29.94 kB / 380.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.583e-05/0.3869, allocations: 19.83 kB / 380.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3869, allocations: 0 / 380.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of Templates: time 0.009756/0.3967, allocations: 3.715 MB / 384.2 MB, free: 11.96 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches