Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001563/0.001563, allocations: 118.6 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 207.7 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.392/1.392, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 63.91 kB / 359.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2517, allocations: 50.55 MB / 410.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004614/0.2563, allocations: 3.387 MB / 413.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.2578, allocations: 0.8571 MB / 414.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.2579, allocations: 11.94 kB / 414.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.2581, allocations: 67.36 kB / 414.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.2584, allocations: 131 kB / 414.7 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.2587, allocations: 147.8 kB / 414.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005347/0.2592, allocations: 0.4941 MB / 415.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.2595, allocations: 125 kB / 415.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003064/0.2598, allocations: 191.3 kB / 415.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.26, allocations: 211.1 kB / 415.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.647e-05/0.2601, allocations: 48 kB / 415.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.2602, allocations: 52 kB / 415.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.2603, allocations: 95.62 kB / 416 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.2605, allocations: 219 kB / 416.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.2611, allocations: 0.5758 MB / 416.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2611, allocations: 0 / 416.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2611, allocations: 0 / 416.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.2611, allocations: 0 / 416.8 MB, free: 10.85 MB / 334.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.001165/0.2623, allocations: 0.7092 MB / 417.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.2623, allocations: 8.031 kB / 417.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.2625, allocations: 56.64 kB / 417.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004583/0.263, allocations: 324.8 kB / 417.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.721e-05/0.263, allocations: 29.38 kB / 417.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.552e-05/0.2631, allocations: 36.12 kB / 418 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006976/0.2638, allocations: 390.2 kB / 418.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2638, allocations: 4 kB / 418.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.2638, allocations: 23.92 kB / 418.4 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2638, allocations: 8 kB / 418.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006374/0.2645, allocations: 295.9 kB / 418.7 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0023/0.2668, allocations: 1.444 MB / 420.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006285/0.2674, allocations: 226.7 kB / 420.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.2676, allocations: 88.81 kB / 420.4 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/0.2676, allocations: 4 kB / 420.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.2676, allocations: 34.56 kB / 420.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.2676, allocations: 0 / 420.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002228/0.2699, allocations: 0.7549 MB / 421.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.2699, allocations: 59.41 kB / 421.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003617/0.2703, allocations: 312.5 kB / 421.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.2703, allocations: 33.7 kB / 421.6 MB, free: 5.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.2705, allocations: 232.2 kB / 421.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.2705, allocations: 59.48 kB / 421.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/0.2706, allocations: 49.7 kB / 422 MB, free: 5.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2708, allocations: 338.8 kB / 422.3 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.271, allocations: 83.95 kB / 422.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002663/0.2713, allocations: 157.4 kB / 422.5 MB, free: 4.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004685/0.2717, allocations: 256.1 kB / 422.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2717, allocations: 0 / 422.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009958/0.2727, allocations: 419 kB / 423.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2728, allocations: 11.94 kB / 423.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2728, allocations: 4 kB / 423.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.2732, allocations: 113.7 kB / 423.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.2734, allocations: 39.92 kB / 423.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004344/0.2777, allocations: 3.568 MB / 426.9 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.278, allocations: 43.83 kB / 427 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.278, allocations: 8 kB / 427 MB, free: 32 kB / 334.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.0002294/0.2782, allocations: 157.7 kB / 427.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.225e-05/0.2783, allocations: 35.75 kB / 427.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.613e-05/0.2783, allocations: 26.31 kB / 427.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2783, allocations: 4.094 kB / 427.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2783, allocations: 0 / 427.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.2784, allocations: 7.984 kB / 427.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004291/0.2788, allocations: 369.4 kB / 427.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2788, allocations: 3.938 kB / 427.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.681e-05/0.2789, allocations: 15.98 kB / 427.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003568/0.2792, allocations: 117.6 kB / 427.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.2792, allocations: 0 / 427.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/0.2832, allocations: 3.476 MB / 431.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2832, allocations: 0 / 431.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009398/0.2842, allocations: 443.8 kB / 431.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.2843, allocations: 112.8 kB / 431.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.758e-05/0.2843, allocations: 0 / 431.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.2846, allocations: 27.92 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.037e-05/0.2846, allocations: 15.97 kB / 431.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.2846, allocations: 8 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002615/0.2849, allocations: 223.1 kB / 432 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2849, allocations: 0 / 432 MB, free: 10.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.2854, allocations: 95.84 kB / 432.1 MB, free: 10.54 MB / 350.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.0001685/0.2856, allocations: 107.2 kB / 432.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.2868, allocations: 0.5011 MB / 432.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2868, allocations: 0 / 432.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005059/0.2873, allocations: 337.7 kB / 433 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.2878, allocations: 60.53 kB / 433.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.2889, allocations: 0.5706 MB / 433.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.2894, allocations: 0.7795 MB / 434.4 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.738e-05/0.2895, allocations: 30.95 kB / 434.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.5e-05/0.2895, allocations: 19.44 kB / 434.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2895, allocations: 3.938 kB / 434.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of Templates: time 0.009178/0.2987, allocations: 4.049 MB / 438.5 MB, free: 4.02 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches