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.0007717/0.0007719, allocations: 97.05 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009349/0.0009349, allocations: 202.6 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00023/0.00023, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1021, allocations: 51.54 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.003844/0.106, allocations: 3.034 MB / 363 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1078, allocations: 0.8494 MB / 363.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003683/0.1082, allocations: 8 kB / 363.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002521/0.1085, allocations: 47.61 kB / 363.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003686/0.1089, allocations: 107.2 kB / 364 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.1093, allocations: 127.9 kB / 364.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006038/0.1099, allocations: 474 kB / 364.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003017/0.1102, allocations: 153.4 kB / 364.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003346/0.1105, allocations: 159.3 kB / 364.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002549/0.1108, allocations: 167.2 kB / 365 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.473e-05/0.1109, allocations: 24 kB / 365.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.246e-05/0.111, allocations: 20 kB / 365.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.39e-05/0.111, allocations: 75.62 kB / 365.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.1113, allocations: 212.6 kB / 365.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.1117, allocations: 450.9 kB / 365.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1117, allocations: 4 kB / 365.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1117, allocations: 0 / 365.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1117, allocations: 0 / 365.8 MB, free: 7.383 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.001097/0.1128, allocations: 0.6435 MB / 366.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1128, allocations: 12.03 kB / 366.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002322/0.1131, allocations: 60.36 kB / 366.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.1135, allocations: 316.7 kB / 366.8 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.1135, allocations: 29.38 kB / 366.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.141e-05/0.1136, allocations: 40.11 kB / 366.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007252/0.1143, allocations: 390.1 kB / 367.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.1143, allocations: 3.938 kB / 367.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.1144, allocations: 20 kB / 367.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1144, allocations: 8 kB / 367.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006704/0.1151, allocations: 307.9 kB / 367.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.1174, allocations: 1.471 MB / 369.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006283/0.118, allocations: 242.8 kB / 369.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.1183, allocations: 96.83 kB / 369.4 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.1183, allocations: 4 kB / 369.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.1183, allocations: 38.48 kB / 369.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.1184, allocations: 4 kB / 369.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002323/0.1207, allocations: 0.8045 MB / 370.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.1207, allocations: 59.41 kB / 370.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003712/0.1211, allocations: 320.4 kB / 370.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.1212, allocations: 33.7 kB / 370.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.1213, allocations: 227.6 kB / 370.9 MB, free: 2.008 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.1214, allocations: 59.19 kB / 370.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.317e-05/0.1214, allocations: 25.7 kB / 371 MB, free: 1.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1216, allocations: 338.8 kB / 371.3 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.1218, allocations: 87.95 kB / 371.4 MB, free: 1.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.1221, allocations: 169.3 kB / 371.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004759/0.1226, allocations: 251.9 kB / 371.8 MB, free: 1.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1226, allocations: 4 kB / 371.8 MB, free: 1.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001055/0.1236, allocations: 453 kB / 372.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1237, allocations: 4 kB / 372.2 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1237, allocations: 7.984 kB / 372.2 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004576/0.1241, allocations: 117.7 kB / 372.4 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.1243, allocations: 39.92 kB / 372.4 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1831/0.3074, allocations: 3.314 MB / 375.7 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.3077, allocations: 43.53 kB / 375.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.3078, allocations: 9.438 kB / 375.8 MB, free: 16.56 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.0001945/0.308, allocations: 155.7 kB / 375.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.83e-05/0.3081, allocations: 25.53 kB / 375.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.652e-05/0.3081, allocations: 29.83 kB / 376 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3082, allocations: 5.812 kB / 376 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3082, allocations: 3.938 kB / 376 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3082, allocations: 2.234 kB / 376 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004531/0.3086, allocations: 367.6 kB / 376.3 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3086, allocations: 0 / 376.3 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.111e-05/0.3087, allocations: 15.08 kB / 376.4 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004175/0.3092, allocations: 121.8 kB / 376.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.3092, allocations: 5.156 kB / 376.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003097/0.3123, allocations: 3.208 MB / 379.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3123, allocations: 4.25 kB / 379.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.3134, allocations: 452.8 kB / 380.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.56e-05/0.3135, allocations: 109.9 kB / 380.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.3135, allocations: 5.859 kB / 380.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.3138, allocations: 29.22 kB / 380.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.3138, allocations: 20.2 kB / 380.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3139, allocations: 9.047 kB / 380.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000242/0.3141, allocations: 224.3 kB / 380.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3141, allocations: 0 / 380.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005631/0.3147, allocations: 96.72 kB / 380.6 MB, free: 13.25 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.00013/0.3148, allocations: 104.4 kB / 380.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.316, allocations: 0.5253 MB / 381.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.316, allocations: 4.75 kB / 381.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004647/0.3165, allocations: 342.7 kB / 381.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.317, allocations: 50.23 kB / 381.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.3181, allocations: 0.7574 MB / 382.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.3184, allocations: 0.7834 MB / 383.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.57e-05/0.3184, allocations: 21.98 kB / 383.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3184, allocations: 0 / 383.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01204/0.3305, allocations: 6.7 MB / 389.9 MB, free: 9.77 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/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