Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008503/0.0008504, allocations: 93.25 kB / 17.3 MB, free: 6.391 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.0008987/0.0008988, allocations: 173 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004237/0.0004238, allocations: 16 kB / 281.4 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09112, allocations: 47.58 MB / 329 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003004/0.09416, allocations: 2.364 MB / 331.3 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.09601, allocations: 1.169 MB / 332.5 MB, free: 192 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.09613, allocations: 4 kB / 332.5 MB, free: 188 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004357/0.09658, allocations: 127.5 kB / 332.6 MB, free: 60 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.09693, allocations: 107.3 kB / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.09824, allocations: 0.6501 MB / 333.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003976/0.09865, allocations: 270.7 kB / 333.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.09974, allocations: 0.5737 MB / 334.2 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.09992, allocations: 111.5 kB / 334.3 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.1002, allocations: 147.3 kB / 334.5 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.1002, allocations: 12 kB / 334.5 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003333/0.1006, allocations: 171.8 kB / 334.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.025e-05/0.1006, allocations: 43.78 kB / 334.7 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.1008, allocations: 161 kB / 334.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005016/0.1013, allocations: 478.6 kB / 335.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1013, allocations: 0 / 335.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1013, allocations: 0 / 335.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.1013, allocations: 4 kB / 335.3 MB, free: 13.33 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001507/0.1028, allocations: 0.6632 MB / 336 MB, free: 12.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1029, allocations: 11.97 kB / 336 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007951/0.1037, allocations: 120.5 kB / 336.1 MB, free: 12.49 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.1041, allocations: 260.6 kB / 336.4 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.1041, allocations: 25.03 kB / 336.4 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.671e-05/0.1042, allocations: 32.31 kB / 336.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005454/0.1047, allocations: 337 kB / 336.8 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.1048, allocations: 7.906 kB / 336.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.1048, allocations: 12 kB / 336.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1048, allocations: 4 kB / 336.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003867/0.1052, allocations: 238.5 kB / 337 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.1071, allocations: 1.451 MB / 338.5 MB, free: 9.949 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007178/0.1078, allocations: 0.7008 MB / 339.2 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.108, allocations: 105.2 kB / 339.3 MB, free: 9.023 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.89e-05/0.1081, allocations: 101 kB / 339.4 MB, free: 8.906 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.1081, allocations: 30.56 kB / 339.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.1081, allocations: 0 / 339.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001218/0.1093, allocations: 0.4916 MB / 339.9 MB, free: 8.348 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.1094, allocations: 55.41 kB / 339.9 MB, free: 8.281 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.1096, allocations: 179.2 kB / 340.1 MB, free: 8.094 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1096, allocations: 25.7 kB / 340.1 MB, free: 8.062 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.1097, allocations: 176 kB / 340.3 MB, free: 7.883 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.677e-05/0.1098, allocations: 86.73 kB / 340.4 MB, free: 7.797 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.266e-05/0.1098, allocations: 33.64 kB / 340.4 MB, free: 7.758 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.11, allocations: 326.8 kB / 340.8 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1101, allocations: 72.53 kB / 340.8 MB, free: 7.359 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.1103, allocations: 128.2 kB / 341 MB, free: 7.211 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.1105, allocations: 220.9 kB / 341.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1105, allocations: 0 / 341.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000536/0.1111, allocations: 331.8 kB / 341.5 MB, free: 6.641 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1111, allocations: 7.938 kB / 341.5 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1111, allocations: 4 kB / 341.5 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002886/0.1114, allocations: 72.81 kB / 341.6 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.1116, allocations: 39.92 kB / 341.6 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.1134, allocations: 1.839 MB / 343.5 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.1136, allocations: 27.62 kB / 343.5 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.1136, allocations: 16 kB / 343.5 MB, free: 4.5 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * 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: 1 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.1137, allocations: 141.8 kB / 343.6 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.1138, allocations: 15.81 kB / 343.7 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005325/0.1143, allocations: 292.8 kB / 343.9 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1143, allocations: 3.938 kB / 343.9 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1143, allocations: 4 kB / 343.9 MB, free: 4.035 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1144, allocations: 0 / 343.9 MB, free: 4.035 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009524/0.1153, allocations: 0.6939 MB / 344.6 MB, free: 3.281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1153, allocations: 4 kB / 344.6 MB, free: 3.277 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.1154, allocations: 27.92 kB / 344.7 MB, free: 3.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002168/0.1157, allocations: 68.81 kB / 344.7 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.1157, allocations: 12 kB / 344.7 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/0.1175, allocations: 1.835 MB / 346.6 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1175, allocations: 0 / 346.6 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006122/0.1181, allocations: 443.9 kB / 347 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.191e-05/0.1182, allocations: 120.8 kB / 347.1 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.1182, allocations: 8 kB / 347.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1183, allocations: 0 / 347.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.1184, allocations: 19.97 kB / 347.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.1184, allocations: 4 kB / 347.2 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.575e-05/0.1185, allocations: 127.2 kB / 347.3 MB, free: 460 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1185, allocations: 0 / 347.3 MB, free: 460 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.119, allocations: 95.69 kB / 347.4 MB, free: 364 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001786/0.1191, allocations: 123.2 kB / 347.5 MB, free: 232 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005541/0.1197, allocations: 350.3 kB / 347.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1197, allocations: 0 / 347.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.12, allocations: 247 kB / 348.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.1204, allocations: 15.98 kB / 348.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009707/0.1213, allocations: 0.7374 MB / 348.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.1216, allocations: 0.7558 MB / 349.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.1218, allocations: 25.94 kB / 349.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.69e-05/0.1218, allocations: 15.44 kB / 349.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1218, allocations: 4 kB / 349.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of Templates: time 0.005379/0.1272, allocations: 2.41 MB / 352.1 MB, free: 11.61 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches