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.001342/0.001342, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00152/0.00152, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.377/1.377, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 50.92 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.09301, allocations: 49.45 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005357/0.0984, allocations: 4.099 MB / 354.8 MB, free: 284 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.1002, allocations: 0.8645 MB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004636/0.1007, allocations: 8 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.101, allocations: 95.06 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005695/0.1016, allocations: 178.4 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.1021, allocations: 143.8 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008043/0.1029, allocations: 0.6655 MB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003568/0.1033, allocations: 203 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003613/0.1036, allocations: 262.9 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003785/0.104, allocations: 286.7 kB / 357.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1041, allocations: 60 kB / 357.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.1043, allocations: 56 kB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.1044, allocations: 131.4 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.1047, allocations: 302.5 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005685/0.1052, allocations: 0.6346 MB / 358.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1053, allocations: 0 / 358.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1053, allocations: 0 / 358.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.205e-05/0.1053, allocations: 0 / 358.7 MB, free: 12.4 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001486/0.1068, allocations: 0.8572 MB / 359.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1068, allocations: 15.88 kB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.107, allocations: 60.28 kB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.1074, allocations: 367.7 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.717e-05/0.1075, allocations: 37.38 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.361e-05/0.1075, allocations: 56.27 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007849/0.1083, allocations: 483.5 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1084, allocations: 8 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.1084, allocations: 16 kB / 360.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1084, allocations: 12 kB / 360.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006006/0.109, allocations: 336.3 kB / 360.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002632/0.1117, allocations: 1.697 MB / 362.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004681/0.1122, allocations: 253.1 kB / 362.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.1124, allocations: 145.7 kB / 363 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.1124, allocations: 7.938 kB / 363 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1125, allocations: 38.81 kB / 363 MB, free: 7.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 3.066e-06/0.1125, allocations: 0 / 363 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001857/0.1144, allocations: 0.9534 MB / 364 MB, free: 6.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.1144, allocations: 81.11 kB / 364.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004027/0.1148, allocations: 389.6 kB / 364.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.1149, allocations: 29.7 kB / 364.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.115, allocations: 291.4 kB / 364.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.12e-05/0.1151, allocations: 114.4 kB / 364.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.1152, allocations: 70.05 kB / 364.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1154, allocations: 358.7 kB / 365.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.1156, allocations: 100.8 kB / 365.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/0.1158, allocations: 194.6 kB / 365.6 MB, free: 5.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004673/0.1163, allocations: 309.1 kB / 365.9 MB, free: 4.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1163, allocations: 0 / 365.9 MB, free: 4.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008158/0.1172, allocations: 453.2 kB / 366.3 MB, free: 4.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.1172, allocations: 8 kB / 366.3 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1172, allocations: 0 / 366.3 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003324/0.1176, allocations: 81.69 kB / 366.4 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003179/0.1179, allocations: 79.84 kB / 366.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.1206, allocations: 3.131 MB / 369.6 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.1209, allocations: 15.98 kB / 369.6 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.1209, allocations: 16 kB / 369.6 MB, free: 0.6914 MB / 302.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.000215/0.1212, allocations: 161.7 kB / 369.8 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.642e-05/0.1213, allocations: 43.53 kB / 369.8 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.986e-05/0.1213, allocations: 47.45 kB / 369.9 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.1214, allocations: 4 kB / 369.9 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.1214, allocations: 8 kB / 369.9 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1214, allocations: 4 kB / 369.9 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1795/0.3008, allocations: 0.9223 MB / 370.8 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3009, allocations: 1.359 kB / 370.8 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.3011, allocations: 46.75 kB / 370.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003154/0.3014, allocations: 83.06 kB / 371 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.3015, allocations: 7.406 kB / 371 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/0.3034, allocations: 3.134 MB / 374.1 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3034, allocations: 0.75 kB / 374.1 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009348/0.3044, allocations: 0.6287 MB / 374.7 MB, free: 21.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.3045, allocations: 114.3 kB / 374.8 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.243e-05/0.3045, allocations: 10.78 kB / 374.9 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.3049, allocations: 31.12 kB / 374.9 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.23e-05/0.305, allocations: 27.22 kB / 374.9 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.305, allocations: 8.219 kB / 374.9 MB, free: 21.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003278/0.3053, allocations: 273.9 kB / 375.2 MB, free: 21.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3054, allocations: 0 / 375.2 MB, free: 21.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006186/0.306, allocations: 115.2 kB / 375.3 MB, free: 21.49 MB / 302.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.000138/0.3061, allocations: 115.6 kB / 375.4 MB, free: 21.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3072, allocations: 0.5141 MB / 375.9 MB, free: 21.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3072, allocations: 1.156 kB / 375.9 MB, free: 21.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005782/0.3078, allocations: 391 kB / 376.3 MB, free: 20.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005964/0.3084, allocations: 62.2 kB / 376.4 MB, free: 20.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.3102, allocations: 0.9901 MB / 377.4 MB, free: 20.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.3105, allocations: 0.8352 MB / 378.2 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.863e-05/0.3106, allocations: 33.59 kB / 378.2 MB, free: 19.57 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3106, allocations: 0 / 378.2 MB, free: 19.57 MB / 302.1 MB Notification: Performance of Templates: time 0.01425/0.3249, allocations: 8.867 MB / 387.1 MB, free: 16.82 MB / 302.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