Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002569/0.002569, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.726/1.726, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008405/0.0008404, allocations: 91.62 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002449, allocations: 4 kB / 360.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2746, allocations: 51.42 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.002582/0.2772, allocations: 2.911 MB / 415 MB, free: 22.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.2785, allocations: 1.03 MB / 416 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.2786, allocations: 7.938 kB / 416 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.2788, allocations: 51.61 kB / 416.1 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.279, allocations: 103.2 kB / 416.2 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.2793, allocations: 126.4 kB / 416.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003063/0.2796, allocations: 474 kB / 416.8 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.2798, allocations: 145.4 kB / 416.9 MB, free: 21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.28, allocations: 163.3 kB / 417.1 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.2802, allocations: 167.2 kB / 417.2 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.743e-05/0.2802, allocations: 24 kB / 417.2 MB, free: 20.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.087e-05/0.2803, allocations: 27.94 kB / 417.3 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.417e-05/0.2804, allocations: 63.7 kB / 417.3 MB, free: 20.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2805, allocations: 212.6 kB / 417.5 MB, free: 20.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003226/0.2808, allocations: 0.5308 MB / 418.1 MB, free: 19.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2809, allocations: 0 / 418.1 MB, free: 19.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2809, allocations: 0 / 418.1 MB, free: 19.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.2809, allocations: 0 / 418.1 MB, free: 19.82 MB / 298.7 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.0008552/0.2817, allocations: 0.6435 MB / 418.7 MB, free: 19.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.2818, allocations: 8.031 kB / 418.7 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.282, allocations: 60.45 kB / 418.8 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.2823, allocations: 312.6 kB / 419.1 MB, free: 18.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.2823, allocations: 25.38 kB / 419.1 MB, free: 18.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.2824, allocations: 40.12 kB / 419.2 MB, free: 18.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006034/0.283, allocations: 394.1 kB / 419.5 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.283, allocations: 4 kB / 419.5 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.283, allocations: 12 kB / 419.6 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.283, allocations: 12 kB / 419.6 MB, free: 18.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005502/0.2836, allocations: 303.9 kB / 419.9 MB, free: 17.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2855, allocations: 1.467 MB / 421.3 MB, free: 16.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006323/0.2862, allocations: 234.8 kB / 421.6 MB, free: 16.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.2864, allocations: 112.7 kB / 421.7 MB, free: 16.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.2864, allocations: 0 / 421.7 MB, free: 16.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.2864, allocations: 38.56 kB / 421.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.042e-06/0.2864, allocations: 0 / 421.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.002168/0.2886, allocations: 0.8056 MB / 422.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.2887, allocations: 51.41 kB / 422.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.2891, allocations: 315.3 kB / 422.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.2891, allocations: 29.7 kB / 422.9 MB, free: 14.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.2893, allocations: 227.6 kB / 423.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.2893, allocations: 63.17 kB / 423.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.2893, allocations: 4 kB / 423.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.935e-05/0.2894, allocations: 334.8 kB / 423.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.2896, allocations: 95.89 kB / 423.6 MB, free: 13.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.2898, allocations: 161.3 kB / 423.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003831/0.2902, allocations: 254.6 kB / 424 MB, free: 13.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2902, allocations: 0 / 424 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001182/0.2914, allocations: 449.6 kB / 424.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.2915, allocations: 4 kB / 424.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.2915, allocations: 4 kB / 424.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000491/0.292, allocations: 125.7 kB / 424.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.2922, allocations: 47.91 kB / 424.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/0.2955, allocations: 3.302 MB / 427.9 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.2958, allocations: 39.59 kB / 428 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.2958, allocations: 16.06 kB / 428 MB, free: 9.242 MB / 298.7 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.0001762/0.296, allocations: 161.9 kB / 428.1 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.471e-05/0.2961, allocations: 27.7 kB / 428.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.731e-05/0.2961, allocations: 30.3 kB / 428.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2961, allocations: 0 / 428.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.2961, allocations: 4.125 kB / 428.2 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.2961, allocations: 4 kB / 428.2 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.2965, allocations: 369.2 kB / 428.6 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.2965, allocations: 7.984 kB / 428.6 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.2966, allocations: 12 kB / 428.6 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003231/0.297, allocations: 117.6 kB / 428.7 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.297, allocations: 8 kB / 428.7 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002894/0.2999, allocations: 3.201 MB / 431.9 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2999, allocations: 4.062 kB / 431.9 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008687/0.3008, allocations: 460.9 kB / 432.4 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.555e-05/0.3009, allocations: 104.8 kB / 432.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.3009, allocations: 0 / 432.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.3011, allocations: 27.98 kB / 432.5 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.3012, allocations: 15.97 kB / 432.5 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3012, allocations: 12 kB / 432.5 MB, free: 4.328 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001926/0.3014, allocations: 214 kB / 432.7 MB, free: 4.117 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3014, allocations: 4 kB / 432.7 MB, free: 4.113 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005767/0.302, allocations: 99.69 kB / 432.8 MB, free: 4.016 MB / 298.7 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.0001447/0.3022, allocations: 111.2 kB / 432.9 MB, free: 3.898 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.3032, allocations: 0.5326 MB / 433.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3032, allocations: 4.188 kB / 433.5 MB, free: 3.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.3036, allocations: 345.1 kB / 433.8 MB, free: 2.973 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.304, allocations: 52.52 kB / 433.9 MB, free: 2.922 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009441/0.305, allocations: 0.722 MB / 434.6 MB, free: 2.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.3052, allocations: 0.7872 MB / 435.4 MB, free: 1.367 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3053, allocations: 26.97 kB / 435.4 MB, free: 1.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.243e-05/0.3053, allocations: 19.44 kB / 435.4 MB, free: 1.32 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3053, allocations: 0 / 435.4 MB, free: 1.32 MB / 298.7 MB Notification: Performance of Templates: time 0.007455/0.3128, allocations: 3.66 MB / 439.1 MB, free: 13.68 MB / 314.7 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.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches