Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 109.9 kB / 17.74 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 193.5 kB / 18.67 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 47.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2738, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004746/0.2786, allocations: 4.087 MB / 405.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.2803, allocations: 0.8762 MB / 406.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002103/0.2805, allocations: 8 kB / 406.4 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.2808, allocations: 91.06 kB / 406.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.2811, allocations: 178.4 kB / 406.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.2814, allocations: 143.8 kB / 406.8 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005825/0.282, allocations: 0.6732 MB / 407.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.2823, allocations: 203 kB / 407.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.2826, allocations: 255 kB / 407.9 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003144/0.2829, allocations: 286.7 kB / 408.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.503e-05/0.283, allocations: 56 kB / 408.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.052e-05/0.2831, allocations: 56 kB / 408.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.2832, allocations: 131.5 kB / 408.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002678/0.2835, allocations: 314.4 kB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005299/0.284, allocations: 0.6317 MB / 409.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.284, allocations: 0 / 409.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.284, allocations: 0 / 409.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2841, allocations: 0 / 409.4 MB, free: 0.8516 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001317/0.2854, allocations: 0.8573 MB / 410.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2854, allocations: 11.89 kB / 410.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.2855, allocations: 72.17 kB / 410.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004933/0.286, allocations: 371.5 kB / 410.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.2861, allocations: 37.38 kB / 410.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.712e-05/0.2862, allocations: 48.38 kB / 410.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007491/0.2869, allocations: 487.5 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.2869, allocations: 11.98 kB / 411.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.287, allocations: 16 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.287, allocations: 12 kB / 411.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006022/0.2876, allocations: 332.3 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.2901, allocations: 1.681 MB / 413.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004438/0.2906, allocations: 265.1 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.2908, allocations: 145.9 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.2908, allocations: 4 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.2909, allocations: 38.56 kB / 413.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.884e-06/0.2909, allocations: 4 kB / 413.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001791/0.2927, allocations: 0.9458 MB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.2927, allocations: 81.05 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.2931, allocations: 381.6 kB / 415.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.2931, allocations: 33.7 kB / 415.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.2933, allocations: 279.5 kB / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.033e-05/0.2934, allocations: 118.3 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.2935, allocations: 74.12 kB / 415.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2937, allocations: 358.7 kB / 416 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.2939, allocations: 100.8 kB / 416.1 MB, free: 9.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.2942, allocations: 198.5 kB / 416.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005035/0.2947, allocations: 305.4 kB / 416.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2947, allocations: 0 / 416.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008117/0.2955, allocations: 453 kB / 417 MB, free: 8.766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2955, allocations: 4 kB / 417 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2956, allocations: 4 kB / 417 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003214/0.2959, allocations: 81.94 kB / 417.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.2962, allocations: 79.89 kB / 417.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002499/0.2987, allocations: 3.127 MB / 420.3 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.299, allocations: 19.97 kB / 420.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.299, allocations: 16 kB / 420.4 MB, free: 5.156 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000199/0.2992, allocations: 169.6 kB / 420.5 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.714e-05/0.2993, allocations: 39.53 kB / 420.6 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.004e-05/0.2994, allocations: 47.47 kB / 420.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2994, allocations: 7.938 kB / 420.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.2995, allocations: 3.938 kB / 420.6 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2995, allocations: 7.938 kB / 420.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.3008, allocations: 0.9325 MB / 421.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3009, allocations: 0 / 421.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.301, allocations: 47.91 kB / 421.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002719/0.3013, allocations: 85.64 kB / 421.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.3014, allocations: 4 kB / 421.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002459/0.3038, allocations: 3.139 MB / 424.8 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3039, allocations: 0 / 424.8 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009412/0.3048, allocations: 0.6165 MB / 425.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.3049, allocations: 116.6 kB / 425.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.068e-05/0.305, allocations: 7.938 kB / 425.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.3053, allocations: 32.17 kB / 425.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.3054, allocations: 27.89 kB / 425.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.3054, allocations: 12 kB / 425.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002945/0.3057, allocations: 279.2 kB / 425.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3058, allocations: 0 / 425.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005837/0.3063, allocations: 116 kB / 426 MB, free: 15.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001635/0.3065, allocations: 111.2 kB / 426.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009106/0.3074, allocations: 0.5118 MB / 426.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3074, allocations: 0 / 426.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005816/0.308, allocations: 392.6 kB / 427 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004878/0.3085, allocations: 53.55 kB / 427.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.3104, allocations: 0.9879 MB / 428.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.3108, allocations: 0.8353 MB / 428.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.3109, allocations: 39.38 kB / 428.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.311, allocations: 0 / 428.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Templates: time 0.01133/0.3223, allocations: 8.855 MB / 437.8 MB, free: 3.191 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches